
Hi, ----- Original Message ----- From: "Steven Watanabe" <watanabesj@gmail.com> To: <boost@lists.boost.org> Sent: Tuesday, May 19, 2009 2:01 AM Subject: Re: [boost] [array] assignement operator
AMDG
vicente.botet wrote:
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.
Whatever happened to inlining and compiler optimizations?
As usual you should be right. The compiler should be able to optimize these.
Have you actually measured any difference?
and you are right again. I should measure before posting. I'll try to do it soon. Thanks, Vicente