
Is boost::mpl::is_sequence supposed to work with gcc 3.2.2 ? I'm trying to use it, but get "false" for boost::mpl::is_sequence<std::list<int> >::value using boost 1.31.0. The same happens with boost::mpl::has_begin. I'm working with FreeBSD 5.1. Any hints how to get it to work would be greatly appreciated. Wolfgang Meyer

"Wolfgang Meyer" <Wolfgang.Meyer@informatik.uni-oldenburg.de> writes:
Is boost::mpl::is_sequence supposed to work with gcc 3.2.2 ? I'm trying to use it, but get "false" for
boost::mpl::is_sequence<std::list<int> >::value
That's correct. It doesn't check for STL sequences, but MPL ones. Try boost::mpl::is_sequence<mpl::list<int> >::value ^^^^^
using boost 1.31.0. The same happens with boost::mpl::has_begin. I'm working with FreeBSD 5.1. Any hints how to get it to work would be greatly appreciated.
It already works. If you want to detect STL sequence-ness, you'll have to try some nasty hacks. I'm have doubts about whether it's even possible to approximate that metafunction in portable code. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
Wolfgang Meyer