[fusion 1.55.0] fusion::map avoid copy construction for elements

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. In Christ, Steven Watanabe

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/
participants (3)
-
Frank Bergemann
-
Joel de Guzman
-
Steven Watanabe