Boost logo

Boost :

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

----- Original Message -----
From: "Steven Watanabe" <watanabesj_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, May 19, 2009 2:01 AM
Subject: Re: [boost] [array] assignement operator

> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at