tech-toolchain archive

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

Re: g++/map vs. clang



On Mon, Apr 09, 2012 at 11:57:57PM +0000, Christos Zoulas wrote:
> I think it is better to ifndef __clang__ or whatever than #if 0 it.

Good point. The attached diff works as well. Ok to commit?
 Thomas
--- usr/include/g++/bits/stl_pair.h     2012-04-08 18:43:34.000000000 +0200
+++ /home/wiz/stl_pair.h        2012-04-10 12:32:37.000000000 +0200
@@ -116,6 +116,7 @@
          second(__p.second) { }
 
 #ifdef __GXX_EXPERIMENTAL_CXX0X__
+#ifndef __clang__
       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)


Home | Main Index | Thread Index | Old Index