Boost logo

Boost Users :

Subject: [Boost-users] [mpl] BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-07-14 14:14:47


#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,


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net