Boost logo

Boost Users :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-06-18 13:03:24


Vít Kasal wrote:
> Hi,
>
> I have a problem with using pop_front on an integral sequence.
>
> pop_front< vector_c<T, c1, c2, ... cn> >::type
>
> results in
>
> vector<c2, ... cn>

Really? It removes two elements - or is that just a typo?

>
> Is it intended behavior?

     Returning a 'vector' instead of a 'vector_c'?

Yes, since 'vector_c' is just a "convenience wrapper" to create 'vector's.

     Removing two elements instead of one?

No. That would be a bug.

> Is there some way to get
>
> vector_c<T, c2, ... cn> >

No. Why do you need it?

You get a Random Access Sequence full of Integral Constants. Treat it as
such and you don't need to rely on the identity of the template-id.

Regards,
Tobias


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