Boost logo

Boost :

Subject: Re: [boost] [array] assignement operator
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-05-18 19:38:18


Hi,
----- Original Message -----
From: "Joseph Gauterin" <joseph.gauterin_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, May 18, 2009 3:32 PM
Subject: Re: [boost] [array] assignement operator

>
> What's wrong with using the assignment operator for arrays of equal
> size and using std::copy otherwise?

I don't think there is nothing wrong, just that copying sub-arrays of the same size, with the size known staticaly, can be improbed respect to std::copy. The assignement operator for arrays of equal size can use this static information, but the std::copy can not because it is based on iterators. Of course when the size is know at runtime std::copy is the good option.

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk