Boost logo

Boost Users :

Subject: [Boost-users] [multi_array] Why the precondition on assignment?
From: Peter Barker (newbarker_at_[hidden])
Date: 2009-02-23 06:35:58


Hello,

I wonder if anyone can give me the rationale behind
boost::multi_index's assignment operator having the following
precondition:

std::equal(this->shape(),this->shape()+this->num_dimensions(),x.shape());

as mentioned in this document:
http://www.boost.org/doc/libs/1_38_0/libs/multi_array/doc/reference.html
?

I've got a multi_array as a data member of a class and would like to
avoid having to create an assignment operator for my class do the
resizing and assignment.

Regards,

Peter Barker


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