Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion][docs] is_sequence *isnt* true for std::vector ?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-02-12 09:57:18


AMDG

On 2/12/2011 6:05 AM, Martin Elzen wrote:
>
> I've been looking thru the documentation at boost.org to try to understand Boost.Spirit. That documentation refers to Boost.Fusion, and at http://www.boost.org/doc/libs/1_45_0/libs/fusion/doc/html/fusion/support/is_sequence.html there's something I think needs clarification (at the very least), or is mistaken. The first line of the last paragraph of that page contains the following line:BOOST_MPL_ASSERT_NOT(( traits::is_sequence< std::vector<int> > ));
> I don't understand. How can a std::vector *not* be considered a sequence?
>

std::vector is not a /Fusion/ sequence.
A Fusion sequence is a generalization
of a tuple. It's size must be fixed
at compile time, which is not true
for std::vector.

In Christ,
Steven Watanabe


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