Author
anonymous
over 6 years ago
Language
C++
Compiler
gcc 8.1.0
Options
Warnings
Boost 1.67.0
C++17(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-8.1.0/include -std=gnu++17
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:37,
from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple: In instantiation of 'std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>) [with _Args1 = {char&&}; long unsigned int ..._Indexes1 = {0}; _Args2 = {}; long unsigned int ..._Indexes2 = {}; _T1 = const char; _T2 = std::unique_ptr<int, void (*)(int*)>]':
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple:1657:63: required from 'std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1 ...>, std::tuple<_Args2 ...>) [with _Args1 = {char&&}; _Args2 = {}; _T1 = const char; _T2 = std::unique_ptr<int, void (*)(int*)>]'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/ext/new_allocator.h:136:4: required from 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::pair<const char, std::unique_ptr<int, void (*)(int*)> >; _Args = {const std::piecewise_construct_t&, std::tuple<char&&>, std::tuple<>}; _Tp = std::_Rb_tree_node<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >]'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::pair<const char, std::unique_ptr<int, void (*)(int*)> >; _Args = {const std::piecewise_construct_t&, std::tuple<char&&>, std::tuple<>}; _Tp = std::_Rb_tree_node<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::_Rb_tree_node<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > > >]'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_tree.h:637:32: required from 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_construct_node(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<char&&>, std::tuple<>}; _Key = char; _Val = std::pair<const char, std::unique_ptr<int, void (*)(int*)> >; _KeyOfValue = std::_Select1st<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >*]'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_tree.h:654:4: required from 'std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<char&&>, std::tuple<>}; _Key = char; _Val = std::pair<const char, std::unique_ptr<int, void (*)(int*)> >; _KeyOfValue = std::_Select1st<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >*]'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_tree.h:2414:13: required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<char&&>, std::tuple<>}; _Key = char; _Val = std::pair<const char, std::unique_ptr<int, void (*)(int*)> >; _KeyOfValue = std::_Select1st<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >]'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_map.h:518:8: 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 = char; _Tp = std::unique_ptr<int, void (*)(int*)>; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, std::unique_ptr<int, void (*)(int*)> > >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = std::unique_ptr<int, void (*)(int*)>; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = char]'
prog.cc:14:10: required from here
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple:1668:70: error: no matching function for call to 'std::unique_ptr<int, void (*)(int*)>::unique_ptr()'
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
^
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:265:2: note: candidate: 'template<class _Up, class> std::unique_ptr<_Tp, _Dp>::unique_ptr(std::auto_ptr<_Up>&&)'
unique_ptr(auto_ptr<_Up>&& __u) noexcept;
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:265:2: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:37,
from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple:1668:70: note: candidate expects 1 argument, 0 provided
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
^
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:255:2: note: candidate: 'template<class _Up, class _Ep, class> std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&)'
unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:255:2: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:37,
from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple:1668:70: note: candidate expects 1 argument, 0 provided
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
^
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:241:7: note: candidate: 'std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = int; _Dp = void (*)(int*)]'
unique_ptr(unique_ptr&& __u) noexcept
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:241:7: note: candidate expects 1 argument, 0 provided
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:236:12: note: candidate: 'template<class _Up, class> constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t)'
constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:236:12: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:37,
from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple:1668:70: note: candidate expects 1 argument, 0 provided
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
^
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:227:7: note: candidate: 'std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer, typename std::remove_reference<_Dp>::type&&) [with _Tp = int; _Dp = void (*)(int*); std::unique_ptr<_Tp, _Dp>::pointer = int*; typename std::remove_reference<_Dp>::type = void (*)(int*)]'
unique_ptr(pointer __p,
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:227:7: note: candidate expects 2 arguments, 0 provided
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:215:7: note: candidate: 'std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer, typename std::conditional<std::is_reference<_Dp>::value, _Dp, const _Dp&>::type) [with _Tp = int; _Dp = void (*)(int*); std::unique_ptr<_Tp, _Dp>::pointer = int*; typename std::conditional<std::is_reference<_Dp>::value, _Dp, const _Dp&>::type = void (* const&)(int*)]'
unique_ptr(pointer __p,
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:215:7: note: candidate expects 2 arguments, 0 provided
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:204:2: note: candidate: 'template<class _Up, class> std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer)'
unique_ptr(pointer __p) noexcept
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:204:2: note: template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:37,
from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/tuple:1668:70: note: candidate expects 1 argument, 0 provided
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
^
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/memory:80,
from prog.cc:3:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:191:12: note: candidate: 'template<class _Up, class> constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr()'
constexpr unique_ptr() noexcept
^~~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/unique_ptr.h:191:12: note: template argument deduction/substitution failed:
Exit Code:
1