new MPL docs

[SVN r26213]
This commit is contained in:
Aleksey Gurtovoy
2004-11-15 12:30:30 +00:00
parent 54a5f8f55f
commit f431ed7cf8

13
book/chapter1/binary.hpp Executable file
View File

@@ -0,0 +1,13 @@
#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>
{
};