//Date: // 2010-09-04 //Purpose: // Provide *maybe* a use-case for using: // // http://bitbucket.org/camior/de-bruijn-bind/src // #include #include #include #include #include #include using namespace boost; using namespace mpl; using namespace placeholders; namespace test { typedef next< _1> op ; typedef int_<2> apply_expected ; #if 1 typedef apply < apply < op , _1 > , int_<1> >::type apply_apply //This fails to compile. ; //BOOST_MPL_ASSERT(( is_same )); #endif #if 1 typedef apply < apply_wrap1 < lambda::type , _1 > , int_<1> >::type apply_wrap_lambda //This compiles and passes following test. ; BOOST_MPL_ASSERT(( is_same )); #endif }//exit test_io namespace