tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: g++/map vs. clang



In article <20120409221530.GN8483%danbala.tuwien.ac.at@localhost>,
Thomas Klausner  <wiz%NetBSD.org@localhost> wrote:
>-=-=-=-=-=-
>--- usr/include/g++/bits/stl_pair.h    2012-04-08 18:43:34.000000000 +0200
>+++ /home/wiz/stl_pair.h       2012-04-09 16:20:17.000000000 +0200
>@@ -116,6 +116,7 @@
>         second(__p.second) { }
> 
> #ifdef __GXX_EXPERIMENTAL_CXX0X__
>+#if 0
>       template<class _U1, class _U2>
>         pair(pair<_U1, _U2>&& __p)
>       : first(std::forward<_U1>(__p.first)),
>@@ -137,6 +138,7 @@
>         second = std::move(__p.second);
>         return *this;
>       }
>+#endif
> 
>       void
>       swap(pair& __p)
>
>-=-=-=-=-=-

I think it is better to ifndef __clang__ or whatever than #if 0 it.

christos



Home | Main Index | Thread Index | Old Index