Boost logo

Boost Users :

Subject: Re: [Boost-users] Set fusion::vector value with boost::shared_ptr
From: Christopher Schmidt (christopher_at_[hidden])
Date: 2012-04-15 11:30:17


Stefan Troeger <stefantroeger_at_[hidden]> writes:

> I want to set a value in a fusion::vector at a specific location. This
> works normaly very well with fusion::at_c(seq) = value, as at_c
> returns a reference to the object at this position. However, this is
> not garanted, the documentation only states about the return type: "In
> most cases, this is a reference". I've encounterd a case where it is
> not a reference, when the objects are of type
> boost::shared_ptr<anytype>. Therefore I cant set the values as I'm
> only overriding a temporary. Minimal example:

Please post a minimal but functional sample next time. That said, I
cannot reproduce your problem with the current boost trunk and gcc
4.7.0.


        Christopher



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