set< hexenc > del_bases, all_ids; set< hexenc > new_bases; 1397: set_difference(all_ids.begin(), all_ids.end(), del_bases.begin(), del_bases.end(), new_bases.begin()); /usr/include/c++/4.0.0/ext/new_allocator.h: In instantiation of ‘__gnu_cxx::new_allocator >’: /usr/include/c++/4.0.0/bits/allocator.h:83: instantiated from ‘std::allocator >’ /usr/include/c++/4.0.0/bits/stl_tree.h:329: instantiated from ‘std::_Rb_tree, const hexenc, std::_Identity >, std::less >, std::allocator > >’ /usr/include/c++/4.0.0/bits/stl_set.h:127: instantiated from ‘std::set, std::less >, std::allocator > >’ database.cc:1397: instantiated from here /usr/include/c++/4.0.0/ext/new_allocator.h:78: error: ‘const _Tp* __gnu_cxx::new_allocator<_Tp>::address(const _Tp&) const [with _Tp = const hexenc]’ and ‘_Tp* __gnu_cxx::new_allocator<_Tp>::address(_Tp&) const [with _Tp = const hexenc]’ cannot be overloaded /usr/include/c++/4.0.0/bits/stl_algo.h: In function ‘_OutputIterator std::set_difference(_InputIterator1, _InputIterator1, _InputIterator2, _InputIterator2, _OutputIterator) [with _InputIterator1 = std::_Rb_tree_const_iterator >, _InputIterator2 = std::_Rb_tree_const_iterator >, _OutputIterator = std::_Rb_tree_const_iterator >]’: database.cc:1399: instantiated from here /usr/include/c++/4.0.0/bits/stl_algo.h:4337: error: passing ‘const hexenc’ as ‘this’ argument of ‘const hexenc& hexenc::operator=(const hexenc&) [with INNER = id]’ discards qualifiers /usr/include/c++/4.0.0/bits/stl_algobase.h: In static member function ‘static _OI std::__copy<, >::copy(_II, _II, _OI) [with _II = std::_Rb_tree_const_iterator >, _OI = std::_Rb_tree_const_iterator >, bool = false, = std::bidirectional_iterator_tag]’: /usr/include/c++/4.0.0/bits/stl_algobase.h:317: instantiated from ‘_OI std::__copy_aux(_II, _II, _OI) [with _II = std::_Rb_tree_const_iterator >, _OI = std::_Rb_tree_const_iterator >]’ /usr/include/c++/4.0.0/bits/stl_algobase.h:326: instantiated from ‘static _OI std::__copy_normal<, >::copy_n(_II, _II, _OI) [with _II = std::_Rb_tree_const_iterator >, _OI = std::_Rb_tree_const_iterator >, bool = false, bool = false]’ /usr/include/c++/4.0.0/bits/stl_algobase.h:387: instantiated from ‘_OutputIterator std::copy(_InputIterator, _InputIterator, _OutputIterator) [with _InputIterator = std::_Rb_tree_const_iterator >, _OutputIterator = std::_Rb_tree_const_iterator >]’ /usr/include/c++/4.0.0/bits/stl_algo.h:4348: instantiated from ‘_OutputIterator std::set_difference(_InputIterator1, _InputIterator1, _InputIterator2, _InputIterator2, _OutputIterator) [with _InputIterator1 = std::_Rb_tree_const_iterator >, _InputIterator2 = std::_Rb_tree_const_iterator >, _OutputIterator = std::_Rb_tree_const_iterator >]’ database.cc:1399: instantiated from here /usr/include/c++/4.0.0/bits/stl_algobase.h:270: error: passing ‘const hexenc’ as ‘this’ argument of ‘const hexenc& hexenc::operator=(const hexenc&) [with INNER = id]’ discards qualifiers