Boost logo

Boost Users :

From: David Klein (dave_chp_at_[hidden])
Date: 2006-11-15 11:43:26


Joel de Guzman wrote:
> David Klein wrote:
>
>> Hi,
>>
>> Is there a reason why fusion/tuple/tuple.hpp includes
>> fusion/sequence/io.hpp? The "normal" boost::tuple,
>> is split into tuple/tuple.hpp and tuple/tuple_io.hpp.
>>
>> I have the problem that just including *stream headers,
>> make my program crash before main, because they rely on
>> static variables that dynamically allocate memory, which
>> isn't available before main.
>>
>> I fixed this for me by commenting out the include line,
>> and now i'm only just wondering why this differs to boost::tuples?
>>
>
> Fusion tuple is TR1 compliant. It does not try to emulate
> boost::tuple and its header file organization.
Ok, i didn't know about that :(
> Your crash is
> not the fault of fusion at all.
No, of course not, and i wasn't blaming fusion for this.
Sorry if it sounded that way.
> Which platform compiler are you
> using?
It's CodeWarrior 2.0 for Nintendo DS.
> Anyway, there are a couple of workarounds. 1) use boost
> tuple 2) use fusion fine grained header (e.g. fusion/sequence/
> container/vector.hpp).
>
>
I tried 2) before but i like fusion::tuple_element<Index, Seq>
better than fusion::result_of::value_at_c<Seq, Index>.
That was the only reason i switched to tuple.
> Regards,
>
Thanks for the hints and this great library.

--
regards,
dave

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