|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-05-11 11:16:17
"Wolfgang Meyer" <Wolfgang.Meyer_at_[hidden]> 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
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