new MPL docs
[SVN r26213]
This commit is contained in:
1 parent
54a5f8f55f
commit
f431ed7cf8
1 file changed
+13
Executable
+13
@@ -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>
|
||||
{
|
||||
};
|
||||
Reference in new issue
Block a user