|
Boost Users : |
Subject: Re: [Boost-users] [proto] Deep copy question
From: Manjunath Kudlur (keveman_at_[hidden])
Date: 2010-03-05 23:41:05
On Fri, Mar 5, 2010 at 7:14 PM, Manjunath Kudlur <keveman_at_[hidden]> wrote:
> Actually, I am looking for some advice on the following: I know that
> when I have proto::terminal<Var<int> >, the underlying object is
> created once, and held by reference *everywhere* it is appears in a
> large complex expression. But as soon as I try to do a deep_copy of
> the expression (as in BOOST_PROTO_AUTO), the underlying object is
> copied once for *every* appearance in the expression. How do I make it
> such the underlying object doesn't copied many times? I want to have
> the copied expression also to have the property that the original
> expression had, i.e., everywhere an underlying object is referenced,
> they all refer to the same object. I will be grateful for any advice.
Oops, I just discovered this question has been asked before in this
list. Please ignore..
Manjunath
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