tech-toolchain archive

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

Re: g++/map vs. clang



On Tue, Apr 10, 2012 at 12:15:30AM +0200, Thomas Klausner wrote:
> On Wed, Mar 28, 2012 at 07:13:51PM -0700, Dennis Ferguson wrote:
> > 
> > On 28 Mar, 2012, at 14:10 , Thomas Klausner wrote:
> > > Next error, while building boost-libs:
> > > 
> > > In file included from /usr/include/g++/map:59:
> > > /usr/include/g++/bits/stl_tree.h:136:4: error: call to implicitly-deleted 
> > > copy constructor of 'std::pair<const void *const, 
> > > boost::detail::tss_data_node>'
> > >          _M_value_field(std::forward<_Args>(__args)...) { }
> > >          ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > 
> > Maybe this(?):
> > 
> >     http://clang.llvm.org/compatibility.html#deleted-special-func
> 
> So I came up with this diff, which will probably cost performance, but
> makes boost-libs 1.49.0 compile and package with clang. I don't know
> what the necessary copy constructor should look like, so I'd
> appreciate a suggestion; or a comment if it's ok to commit the diff,
> which basically just removes the following block:

Aren't you looking for the equivalent of
http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/include/bits/stl_pair.h?r1=174463&r2=174464&;

Joerg


Home | Main Index | Thread Index | Old Index