Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2005-10-21 19:26:26


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk