tech-toolchain archive

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

g++/map vs. clang



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)...) { }
          ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/g++/ext/new_allocator.h:111:23: note: in instantiation of function 
template specialization 'std::_Rb_tree_node<std::pair<const void *const, 
boost::detail::tss_data_node> >::_Rb_tree_node<const std::pair<const void 
*const, boost::detail::tss_data_node> &>' requested here
        { ::new((void *)__p) _Tp(std::forward<_Args>(__args)...); }
                             ^
/usr/include/g++/bits/stl_tree.h:394:32: note: in instantiation of function 
template specialization 
'__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const void *const, 
boost::detail::tss_data_node> > >::construct<const std::pair<const void *const, 
boost::detail::tss_data_node> &>' requested here
              _M_get_Node_allocator().construct(__tmp,
                                      ^
/usr/include/g++/bits/stl_tree.h:899:24: note: in instantiation of function 
template specialization 'std::_Rb_tree<const void *, std::pair<const void 
*const, boost::detail::tss_data_node>, std::_Select1st<std::pair<const void 
*const, boost::detail::tss_data_node> >, std::less<const void *>, 
std::allocator<std::pair<const void *const, boost::detail::tss_data_node> > 
>::_M_create_node<const std::pair<const void *const, 
boost::detail::tss_data_node> &>' requested here
      _Link_type __z = _M_create_node(__v);
                       ^
/usr/include/g++/bits/stl_tree.h:1191:34: note: in instantiation of member 
function 'std::_Rb_tree<const void *, std::pair<const void *const, 
boost::detail::tss_data_node>, std::_Select1st<std::pair<const void *const, 
boost::detail::tss_data_node> >, std::less<const void *>, 
std::allocator<std::pair<const void *const, boost::detail::tss_data_node> > 
>::_M_insert_' requested here
            return pair<iterator, bool>(_M_insert_(__x, __y, __v), true);
                                        ^
/usr/include/g++/bits/stl_map.h:501:21: note: in instantiation of member 
function 'std::_Rb_tree<const void *, std::pair<const void *const, 
boost::detail::tss_data_node>, std::_Select1st<std::pair<const void *const, 
boost::detail::tss_data_node> >, std::less<const void *>, 
std::allocator<std::pair<const void *const, boost::detail::tss_data_node> > 
>::_M_insert_unique' requested here
      { return _M_t._M_insert_unique(__x); }
                    ^
libs/thread/src/pthread/thread.cpp:569:43: note: in instantiation of member 
function 'std::map<const void *, boost::detail::tss_data_node, std::less<const 
void *>, std::allocator<std::pair<const void *const, 
boost::detail::tss_data_node> > >::insert' requested here
            
current_thread_data->tss_data.insert(std::make_pair(key,tss_data_node(func,tss_data)));
                                          ^
/usr/include/g++/bits/stl_pair.h:71:12: note: 'pair<const void *const, 
boost::detail::tss_data_node>' defined here
    struct pair
           ^
1 error generated.

Ideas?
 Thomas


Home | Main Index | Thread Index | Old Index