mirror of
https://github.com/boostorg/mpl.git
synced 2026-01-31 10:29:26 +01:00
14 lines
217 B
C++
Executable File
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>
|
|
{
|
|
};
|