[Patch] Resolve libstdc++/30449

Paolo Carlini pcarlini@suse.de
Sun Apr 29 23:26:00 GMT 2007


Hi,

I'd like to close this enhancement PR with the below, which is mostly 
about std::equal. While working on it - std::equal now calls std::memcmp 
when pointers to integers are involved (nothing more general, to be 
safe, long double may already have padding bytes) - I figured out a more 
compact way to reach the pointer encapsulated in __normal_iterator, via 
the new __niter_base. Please have a look, double check it with me. For 
simplicity, I'm also removing a couple of overloads for wchar_t which I 
added recently, I don't think are worth the complexity and including 
<cwchar>, probably we don't want to add much more to this header within 
C++03...

Tested x86-linux, without PCHs too.

Paolo.

//////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_30449_final
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070429/0b41aeb6/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_30449_final
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070429/0b41aeb6/attachment-0001.ksh>


More information about the Libstdc++ mailing list