Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion]simple fusion seq_size fails to compile
From: Pete Bartlett (pete_at_[hidden])
Date: 2010-05-16 17:17:43


>Compilation of attachment 1 with gcc-4.5, produces errors in attachment 2.
When the >'#if 1' on line 24 is changed to '#if 0', it compiles OK.
>
>What am I doing wrong?
>
>TIA.

In the second "inner" instantiation of seq_size (ie the one taking in an
empty sequence), what return type /could/ pop_front have? So intuitively a
compile error is what I would expect here - and I think a literal reading of
the documentation agrees because an empty sequence does not satisfy the
fusion Sequence concept.


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