|
Boost Users : |
Subject: Re: [Boost-users] [fusion] memory layout of fusion::vector vs boost::tuple/boost::array
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-10-06 20:33:18
On 10/7/2010 3:53 AM, alfC wrote:
> Hi,
>
> I am trying to convert a boost::array into a fusion::vector.
> reinterpreting the memory from boost::array. It works for tuples but
> not fusion::vector, why is that. Is there a way to make it work? ( I
> was hoping that the memory layout is the same to make conversion from
> one to the other very easy.)
Don't do that. It will *never* be guaranteed to work even if it works
now. The memory layout of fusion::vector is an internal implementation
detail and can change anytime.
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
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