Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.container.vector::operator==() bug?
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2014-11-05 08:10:30


On Wed, Nov 5, 2014 at 6:46 AM, niXman <i.nixman_at_[hidden]> wrote:
>
> Hi,
>
> https://github.com/boostorg/container/blob/master/include/boost/container/vector.hpp#L1712
>
> Explained:
> if ( !(1 != 1) )

"if ( !(1 != 1) )" was humor, right?

I say that half seriously, because I've actually had the pleasure of
dealing with code like that at times throughout my career.

My own code is not without its logical concerns from time to time, but
t'ain't one of these... :)

> Another question is, why 'memcmp()' not used for vectors of fundamental
> types?
>
>
> --
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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