Files
mpl/book/chapter1/binary.hpp
Aleksey Gurtovoy 203a9f086a merge RC_1_32_0 fixes
[SVN r26328]
2004-11-28 03:35:12 +00:00

14 lines
217 B
C++
Executable File

#include "boost/mpl/long.hpp"
#include "boost/mpl/alias.hpp"
template< long n > struct binary
: mpl::long_< ( binary< n / 10 >::value << 1 ) + n % 10 >
{
};
template<> struct binary<0>
: mpl::long_<0>
{
};