Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi_array] Why the precondition on assignment?
From: Peter Barker (newbarker_at_[hidden])
Date: 2009-02-24 08:42:52


On Mon, Feb 23, 2009 at 11:35 AM, Peter Barker <newbarker_at_[hidden]> wrote:
> Hello,
>
> I wonder if anyone can give me the rationale behind
> boost::multi_index's assignment operator having the following
> precondition:

That meant to say boost::multi_array like the subject does!

I can't see the logic for requiring the assigned-to object to have the
same shape as the RHS object - surely the array is being discarded and
being made a copy of RHS?

Anyone?

Regards,

Pete


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