
1 Sep
2009
1 Sep
'09
5:45 p.m.
I have the following which I expect to produce a compile time warning which includes the type name but it fails to do so. I found this in the C++ Template Metaprogramming book - but not in the MPL documentation. What am I missing here?
Robert Ramey
#include <boost/mpl/print.hpp> template<class T> int f(){ boost::mpl::print<T>;
Try: boost::mpl::print<T> abc; instead
//static int x = g<T::value>(); return x; }
struct A { BOOST_STATIC_CONSTANT(bool, value = false); };
... int x = f<A>();
Regards Hartmut