Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.container.vector::operator==() bug?
From: niXman (i.nixman_at_[hidden])
Date: 2014-11-10 02:41:55


niXman 2014-11-10 01:19:
> Ion Gaztañaga 2014-11-10 00:44:
>> I don't think using std::equal will guarantees the use of memcmp. At
>> least, the last time I checked some major implementations didn't use
>> it and others only for char types. I've seen libstdc++ uses memcmp for
>> non-char types, maybe that could be a good example to follow.
>
> Hmm..
> std::equal()[1] uses __equal_aux()[2], which uses '__builtin_memcmp()'
> for:
> https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/include/bits/stl_algobase.h?view=markup#l832
>
>
> [1]
> https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/include/bits/stl_algobase.h?view=markup#l1047
> [2]
> https://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/include/bits/stl_algobase.h?view=markup#l828

ping?

-- 
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net