Author
anonymous
about 10 years ago
Language
Compiler
Options
Author
anonymous
about 10 years ago
$ In file included from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_algobase.h:65:0,
from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_tree.h:63,
from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/map:60,
from prog.cc:2:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h: In instantiation of 'constexpr std::pair<_T1, _T2>::pair(_U1&&, const _T2&) [with _U1 = long unsigned int; <template-parameter-2-2> = void; _T1 = long unsigned int; _T2 = std::atomic<long int>]':
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h:273:72: required from 'constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = long unsigned int; _T2 = std::atomic<long int>; typename std::__decay_and_strip<_T2>::__type = std::atomic<long int>; typename std::__decay_and_strip<_Tp>::__type = long unsigned int]'
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:472:11: required from 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::atomic<long int>; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = long unsigned int]'
prog.cc:13:10: required from here
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h:126:45: error: use of deleted function 'std::atomic<long int>::atomic(const std::atomic<long int>&)'
In file included from prog.cc:1:0:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/atomic:636:7: error: declared here
In file included from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_algobase.h:65:0,
from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_tree.h:63,
from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/map:60,
from prog.cc:2:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h: In instantiation of 'constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&) [with _T1 = long unsigned int; _T2 = std::atomic<long int>; typename std::__decay_and_strip<_T2>::__type = std::atomic<long int>; typename std::__decay_and_strip<_Tp>::__type = long unsigned int]':
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:472:11: required from 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::atomic<long int>; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = long unsigned int]'
prog.cc:13:10: required from here
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h:273:72: error: use of deleted function 'constexpr std::pair<_T1, _T2>::pair(std::pair<_T1, _T2>&&) [with _T1 = long unsigned int; _T2 = std::atomic<long int>; std::pair<_T1, _T2> = std::pair<long unsigned int, std::atomic<long int> >]'
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h:120:17: note: 'constexpr std::pair<_T1, _T2>::pair(std::pair<_T1, _T2>&&) [with _T1 = long unsigned int; _T2 = std::atomic<long int>; std::pair<_T1, _T2> = std::pair<long unsigned int, std::atomic<long int> >]' is implicitly deleted because the default definition would be ill-formed:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_pair.h:120:17: error: use of deleted function 'std::atomic<long int>::atomic(const std::atomic<long int>&)'
In file included from prog.cc:1:0:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/atomic:636:7: error: declared here
In file included from /usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/map:61:0,
from prog.cc:2:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h: In instantiation of 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::atomic<long int>; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = long unsigned int]':
prog.cc:13:10: required from here
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:472:11: error: no matching function for call to 'std::map<long unsigned int, std::atomic<long int> >::insert(std::map<long unsigned int, std::atomic<long int> >::iterator&, std::pair<long unsigned int, std::atomic<long int> >)'
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:472:11: note: candidates are:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:522:7: note: std::pair<typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::insert(const value_type&) [with _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >; typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator = std::_Rb_tree_iterator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const long unsigned int, std::atomic<long int> >]
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:522:7: note: candidate expects 1 argument, 2 provided
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:530:9: note: template<class _Pair, class> std::pair<typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename _Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, bool> std::map::insert(_Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >]
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:530:9: note: template argument deduction/substitution failed:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:472:11: note: candidate expects 1 argument, 2 provided
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:543:7: note: void std::map<_Key, _Tp, _Compare, _Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >]
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:543:7: note: candidate expects 1 argument, 2 provided
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:572:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::insert(std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const long unsigned int, std::atomic<long int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::value_type = std::pair<const long unsigned int, std::atomic<long int> >]
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:572:7: note: no known conversion for argument 2 from 'std::pair<long unsigned int, std::atomic<long int> >' to 'const value_type& {aka const std::pair<const long unsigned int, std::atomic<long int> >&}'
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:583:9: note: template<class _Pair, class> std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map::insert(std::map<_Key, _Tp, _Compare, _Alloc>::const_iterator, _Pair&&) [with _Pair = _Pair; <template-parameter-2-2> = <template-parameter-1-2>; _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >]
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:583:9: note: template argument deduction/substitution failed:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:579:32: error: no type named 'type' in 'struct std::enable_if<false, void>'
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:598:9: note: template<class _InputIterator> void std::map::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = long unsigned int; _Tp = std::atomic<long int>; _Compare = std::less<long unsigned int>; _Alloc = std::allocator<std::pair<const long unsigned int, std::atomic<long int> > >]
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:598:9: note: template argument deduction/substitution failed:
/usr/local/gcc-4.7.3/lib/gcc/x86_64-unknown-linux-gnu/4.7.3/../../../../include/c++/4.7.3/bits/stl_map.h:472:11: note: deduced conflicting types for parameter '_InputIterator' ('std::_Rb_tree_iterator<std::pair<const long unsigned int, std::atomic<long int> > >' and 'std::pair<long unsigned int, std::atomic<long int> >')
Exit Code:
1