
14 Jul
2009
14 Jul
'09
6:14 p.m.
#include <iostream> #include <boost/mpl/has_xxx.hpp> #include <boost/mpl/bool.hpp> BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(has_xxx, xxx, false) struct test1 { int xxx; }; using namespace boost::mpl; int main() { std::cout<< has_xxx<test1>::value <<std::endl; return 0; } The output is 0, while it should be 1, shouldn't it? Rds,