
22 Oct
2005
22 Oct
'05
12:26 a.m.
Hi, using VC7.1... In the following the output is 0, whereas it should be 1 . However commenting out either of the first 2 headers makes result correct. Can anyone repeat this in VC7.1? ------------- #include <boost/mpl/modulus.hpp> #include <boost/mpl/apply.hpp> #include <boost/mpl/has_xxx.hpp> namespace my{ template<typename T> struct X{ typedef int tag; }; BOOST_MPL_HAS_XXX_TRAIT_DEF(tag); } int main() { std::cout << my::has_tag<my::X<int> >::value << '\n'; } --------------- cheers Andy Little