Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion 1.55.0] fusion::map avoid copy construction for elements
From: Joel de Guzman (djowel_at_[hidden])
Date: 2014-03-30 08:30:14


On 3/28/14, 12:03 AM, Steven Watanabe wrote:
> AMDG
>
> On 03/27/2014 01:29 AM, Frank Bergemann wrote:
>> Hi,
>> [using gcc-4.7.2 on Red Hat Linux 6.2]
>> i have problems to avoid copy construction for fusion::map elements. See test
>> program below. It shall pass a fusion::map as context along a call hierarchy
>> with option to add elements (and in future maybe modify elements - if possible).
>> Either i use
>> #define USE_RVALUE_REF 0
>> and have copy-constructions (strange especially for the at_key lookup for Data
>> in exec2()!)
>> Or i use
>> #define USE_RVALUE_REF 1
>> and get a compilation problem for code to "retrieve Data..."
>> Can you pls. help me?
>
> I don't think the fusion containers support
> rvalue reference members right now.

Correct. As usual, patches very welcome!

Regards,

-- 
Joel de Guzman
http://www.ciere.com
http://boost-spirit.com
http://www.cycfi.com/

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