This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] std::tr1::array testsuite additions, first attempt


>Benjamin, is the size comparison pointless here, since both arrays have
>the same _Nm ?

Yes!

>If it is needed, then the call to std::equal will go off the end of two
>if two.size() < one.size() because it's called whether or not the sizes
>are the same. Could use && to short circuit, but I think this is OK:
>
>    return std::equal(__one.begin(), __one.end(), __two.begin());

I'll make this change.

Thanks!

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]