
18 May
2009
18 May
'09
11:38 p.m.
Hi, ----- Original Message ----- From: "Joseph Gauterin" <joseph.gauterin@googlemail.com> To: <boost@lists.boost.org> 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