tech-toolchain archive

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

Re: g++/map vs. clang



On Apr 10, 12:39pm, wiz%NetBSD.org@localhost (Thomas Klausner) wrote:
-- Subject: Re: g++/map vs. clang

| Good point. The attached diff works as well. Ok to commit?
|  Thomas

Sure, but also add a comment saying that clang breaks with it, but the
code might not be at fault.

christos
| 
| --3MwIy2ne0vdjdPXF
| Content-Type: text/plain; charset=us-ascii
| Content-Disposition: attachment; filename="stl.diff"
| 
| --- 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)
| 
| --3MwIy2ne0vdjdPXF--
-- End of excerpt from Thomas Klausner




Home | Main Index | Thread Index | Old Index