/usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<std::_Any_data>’:
/usr/include/c++/11/type_traits:152:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<std::_Any_data>, std::is_nothrow_move_assignable<std::_Any_data> >’
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::_Any_data; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:557:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {}]’
src/net/Channel.h:41:21: required from here
/usr/include/c++/11/type_traits:1077:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<std::_Any_data, true>’
1077 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1063:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<std::_Any_data, true>’
1063 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<std::_Any_data>, std::is_nothrow_move_assignable<std::_Any_data> >’:
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::_Any_data; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:557:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {}]’
src/net/Channel.h:41:21: required from here
/usr/include/c++/11/type_traits:152:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<std::_Any_data>’
152 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::_Any_data; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/usr/include/c++/11/bits/std_function.h:557:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {}]’
src/net/Channel.h:41:21: required from here
/usr/include/c++/11/type_traits:2678:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<std::_Any_data>, std::is_nothrow_move_assignable<std::_Any_data> >’
2678 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<void (*)(const std::_Any_data&, int&&)>’:
/usr/include/c++/11/type_traits:152:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<void (*)(const std::_Any_data&, int&&)>, std::is_nothrow_move_assignable<void (*)(const std::_Any_data&, int&&)> >’
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = void (*)(const std::_Any_data&, int&&); std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:559:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {int}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {int}]’
src/net/Acceptor.h:24:31: required from here
/usr/include/c++/11/type_traits:1077:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<void (*)(const std::_Any_data&, int&&), true>’
1077 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1063:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<void (*)(const std::_Any_data&, int&&), true>’
1063 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<void (*)(const std::_Any_data&, int&&)>, std::is_nothrow_move_assignable<void (*)(const std::_Any_data&, int&&)> >’:
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = void (*)(const std::_Any_data&, int&&); std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:559:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {int}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {int}]’
src/net/Acceptor.h:24:31: required from here
/usr/include/c++/11/type_traits:152:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<void (*)(const std::_Any_data&, int&&)>’
152 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = void (*)(const std::_Any_data&, int&&); std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/usr/include/c++/11/bits/std_function.h:559:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {int}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = void; _ArgTypes = {int}]’
src/net/Acceptor.h:24:31: required from here
/usr/include/c++/11/type_traits:2678:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<void (*)(const std::_Any_data&, int&&)>, std::is_nothrow_move_assignable<void (*)(const std::_Any_data&, int&&)> >’
2678 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<bool (*)(const std::_Any_data&)>’:
/usr/include/c++/11/type_traits:152:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<bool (*)(const std::_Any_data&)>, std::is_nothrow_move_assignable<bool (*)(const std::_Any_data&)> >’
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool (*)(const std::_Any_data&); std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:559:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {}]’
src/net/Timer.h:42:21: required from here
/usr/include/c++/11/type_traits:1077:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<bool (*)(const std::_Any_data&), true>’
1077 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1063:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<bool (*)(const std::_Any_data&), true>’
1063 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<bool (*)(const std::_Any_data&)>, std::is_nothrow_move_assignable<bool (*)(const std::_Any_data&)> >’:
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool (*)(const std::_Any_data&); std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:559:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {}]’
src/net/Timer.h:42:21: required from here
/usr/include/c++/11/type_traits:152:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<bool (*)(const std::_Any_data&)>’
152 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = bool (*)(const std::_Any_data&); std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/usr/include/c++/11/bits/std_function.h:559:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {}]’
src/net/Timer.h:42:21: required from here
/usr/include/c++/11/type_traits:2678:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<bool (*)(const std::_Any_data&)>, std::is_nothrow_move_assignable<bool (*)(const std::_Any_data&)> >’
2678 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_default_constructible<xop::TcpSocket*>, std::is_nothrow_default_constructible<std::default_delete<xop::TcpSocket> > >’:
/usr/include/c++/11/tuple:1038:49: required from ‘static constexpr bool std::tuple<_T1, _T2>::__nothrow_default_constructible() [with _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’
/usr/include/c++/11/tuple:1050:42: required from ‘constexpr std::tuple<_T1, _T2>::tuple() [with bool _Dummy = true; typename std::enable_if<std::_TupleConstraints<_Dummy, _T1, _T2>::__is_implicitly_default_constructible(), bool>::type <anonymous> = true; _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’
/usr/include/c++/11/bits/unique_ptr.h:155:43: required from ‘std::__uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl(std::__uniq_ptr_impl<_Tp, _Dp>::pointer) [with _Tp = xop::TcpSocket; _Dp = std::default_delete<xop::TcpSocket>; std::__uniq_ptr_impl<_Tp, _Dp>::pointer = xop::TcpSocket*]’
/usr/include/c++/11/bits/unique_ptr.h:210:40: required from ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer) [with _Del = std::default_delete<xop::TcpSocket>; <template-parameter-2-2> = void; _Tp = xop::TcpSocket; _Dp = std::default_delete<xop::TcpSocket>; std::unique_ptr<_Tp, _Dp>::pointer = xop::TcpSocket*]’
src/net/Acceptor.cpp:10:32: required from here
/usr/include/c++/11/type_traits:152:12: error: ‘value’ is not a member of ‘std::is_nothrow_default_constructible<xop::TcpSocket*>’
152 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/functional:54,
from src/net/Acceptor.h:4,
from src/net/Acceptor.cpp:1:
/usr/include/c++/11/tuple: In instantiation of ‘static constexpr bool std::tuple<_T1, _T2>::__nothrow_default_constructible() [with _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’:
/usr/include/c++/11/tuple:1050:42: required from ‘constexpr std::tuple<_T1, _T2>::tuple() [with bool _Dummy = true; typename std::enable_if<std::_TupleConstraints<_Dummy, _T1, _T2>::__is_implicitly_default_constructible(), bool>::type <anonymous> = true; _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’
/usr/include/c++/11/bits/unique_ptr.h:155:43: required from ‘std::__uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl(std::__uniq_ptr_impl<_Tp, _Dp>::pointer) [with _Tp = xop::TcpSocket; _Dp = std::default_delete<xop::TcpSocket>; std::__uniq_ptr_impl<_Tp, _Dp>::pointer = xop::TcpSocket*]’
/usr/include/c++/11/bits/unique_ptr.h:210:40: required from ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer) [with _Del = std::default_delete<xop::TcpSocket>; <template-parameter-2-2> = void; _Tp = xop::TcpSocket; _Dp = std::default_delete<xop::TcpSocket>; std::unique_ptr<_Tp, _Dp>::pointer = xop::TcpSocket*]’
src/net/Acceptor.cpp:10:32: required from here
/usr/include/c++/11/tuple:1038:49: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_default_constructible<xop::TcpSocket*>, std::is_nothrow_default_constructible<std::default_delete<xop::TcpSocket> > >’
1038 | is_nothrow_default_constructible<_T2>>::value;
| ^~~~~
/usr/include/c++/11/tuple:1039:7: error: body of ‘constexpr’ function ‘static constexpr bool std::tuple<_T1, _T2>::__nothrow_default_constructible() [with _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’ not a return-statement
1039 | }
| ^
/usr/include/c++/11/tuple: In instantiation of ‘constexpr std::tuple<_T1, _T2>::tuple() [with bool _Dummy = true; typename std::enable_if<std::_TupleConstraints<_Dummy, _T1, _T2>::__is_implicitly_default_constructible(), bool>::type <anonymous> = true; _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’:
/usr/include/c++/11/bits/unique_ptr.h:155:43: required from ‘std::__uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl(std::__uniq_ptr_impl<_Tp, _Dp>::pointer) [with _Tp = xop::TcpSocket; _Dp = std::default_delete<xop::TcpSocket>; std::__uniq_ptr_impl<_Tp, _Dp>::pointer = xop::TcpSocket*]’
/usr/include/c++/11/bits/unique_ptr.h:210:40: required from ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer) [with _Del = std::default_delete<xop::TcpSocket>; <template-parameter-2-2> = void; _Tp = xop::TcpSocket; _Dp = std::default_delete<xop::TcpSocket>; std::unique_ptr<_Tp, _Dp>::pointer = xop::TcpSocket*]’
src/net/Acceptor.cpp:10:32: required from here
/usr/include/c++/11/tuple:1050:42: error: ‘static constexpr bool std::tuple<_T1, _T2>::__nothrow_default_constructible() [with _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’ called in a constant expression
1050 | noexcept(__nothrow_default_constructible())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/11/tuple:1035:29: note: ‘static constexpr bool std::tuple<_T1, _T2>::__nothrow_default_constructible() [with _T1 = xop::TcpSocket*; _T2 = std::default_delete<xop::TcpSocket>]’ is not usable as a ‘constexpr’ function because:
1035 | static constexpr bool __nothrow_default_constructible()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/utility:70,
from /usr/include/c++/11/tuple:38,
from /usr/include/c++/11/functional:54,
from src/net/Acceptor.h:4,
from src/net/Acceptor.cpp:1:
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<xop::Channel*>’:
/usr/include/c++/11/type_traits:152:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<xop::Channel*>, std::is_nothrow_move_assignable<xop::Channel*> >’
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = xop::Channel*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/shared_ptr_base.h:1316:11: required from ‘void std::__shared_ptr<_Tp, _Lp>::swap(std::__shared_ptr<_Tp, _Lp>&) [with _Tp = xop::Channel; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/11/bits/shared_ptr_base.h:1280:22: required from ‘std::__shared_ptr<_Tp, _Lp>::_SafeConv<_Yp> std::__shared_ptr<_Tp, _Lp>::reset(_Yp*) [with _Yp = xop::Channel; _Tp = xop::Channel; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; std::__shared_ptr<_Tp, _Lp>::_SafeConv<_Yp> = void]’
src/net/Acceptor.cpp:29:40: required from here
/usr/include/c++/11/type_traits:1077:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<xop::Channel*, true>’
1077 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1063:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<xop::Channel*, true>’
1063 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<xop::Channel*>, std::is_nothrow_move_assignable<xop::Channel*> >’:
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = xop::Channel*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/shared_ptr_base.h:1316:11: required from ‘void std::__shared_ptr<_Tp, _Lp>::swap(std::__shared_ptr<_Tp, _Lp>&) [with _Tp = xop::Channel; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/11/bits/shared_ptr_base.h:1280:22: required from ‘std::__shared_ptr<_Tp, _Lp>::_SafeConv<_Yp> std::__shared_ptr<_Tp, _Lp>::reset(_Yp*) [with _Yp = xop::Channel; _Tp = xop::Channel; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; std::__shared_ptr<_Tp, _Lp>::_SafeConv<_Yp> = void]’
src/net/Acceptor.cpp:29:40: required from here
/usr/include/c++/11/type_traits:152:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<xop::Channel*>’
152 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = xop::Channel*; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/usr/include/c++/11/bits/shared_ptr_base.h:1316:11: required from ‘void std::__shared_ptr<_Tp, _Lp>::swap(std::__shared_ptr<_Tp, _Lp>&) [with _Tp = xop::Channel; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/11/bits/shared_ptr_base.h:1280:22: required from ‘std::__shared_ptr<_Tp, _Lp>::_SafeConv<_Yp> std::__shared_ptr<_Tp, _Lp>::reset(_Yp*) [with _Yp = xop::Channel; _Tp = xop::Channel; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; std::__shared_ptr<_Tp, _Lp>::_SafeConv<_Yp> = void]’
src/net/Acceptor.cpp:29:40: required from here
/usr/include/c++/11/type_traits:2678:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<xop::Channel*>, std::is_nothrow_move_assignable<xop::Channel*> >’
2678 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
make: *** [Makefile:54: objs/Acceptor.o] Error 1
Yassine goinfre/RtspServer $ make SRC1=src (git)-[master]-
g++ -c src/xop/AACSource.cpp -o objs/AACSource.o -std=c++11 -I/goinfre/yaajagro/RtspServer/src/ -I/goinfre/yaajagro/RtspServer/src/net -I/goinfre/yaajagro/RtspServer/src/xop -I/goinfre/yaajagro/RtspServer/src/3rdpart
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/memory:63,
from src/xop/media.h:7,
from src/xop/MediaSource.h:7,
from src/xop/AACSource.h:7,
from src/xop/AACSource.cpp:9:
/usr/include/c++/11/type_traits:1017:25: error: there are no arguments to ‘__is_nothrow_constructible’ that depend on a template parameter, so a declaration of ‘__is_nothrow_constructible’ must be available [-fpermissive]
1017 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1017:25: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/c++/11/type_traits:1017:66: error: template argument 1 is invalid
1017 | = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>;
| ^
/usr/include/c++/11/type_traits:1023:45: error: expected template-name before ‘<’ token
1023 | : public __is_nothrow_constructible_impl<_Tp, _Args...>::type
| ^
/usr/include/c++/11/type_traits:1023:45: error: expected ‘{’ before ‘<’ token
/usr/include/c++/11/type_traits:1032:30: error: there are no arguments to ‘__is_nothrow_constructible’ that depend on a template parameter, so a declaration of ‘__is_nothrow_constructible’ must be available [-fpermissive]
1032 | : public __bool_constant<__is_nothrow_constructible(_Tp)>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1032:61: error: template argument 1 is invalid
1032 | : public __bool_constant<__is_nothrow_constructible(_Tp)>
| ^
/usr/include/c++/11/type_traits:1048:45: error: expected template-name before ‘<’ token
1048 | : public __is_nothrow_constructible_impl<_Tp, const _Tp&>
| ^
/usr/include/c++/11/type_traits:1048:45: error: expected ‘{’ before ‘<’ token
/usr/include/c++/11/type_traits:1071:45: error: expected template-name before ‘<’ token
1071 | : public __is_nothrow_constructible_impl<_Tp, _Tp&&>
| ^
/usr/include/c++/11/type_traits:1071:45: error: expected ‘{’ before ‘<’ token
/usr/include/c++/11/type_traits:1137:25: error: there are no arguments to ‘__is_nothrow_assignable’ that depend on a template parameter, so a declaration of ‘__is_nothrow_assignable’ must be available [-fpermissive]
1137 | = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1137:58: error: template argument 1 is invalid
1137 | = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>;
| ^
/usr/include/c++/11/type_traits:1142:42: error: expected template-name before ‘<’ token
1142 | : public __is_nothrow_assignable_impl<_Tp, _Up>
| ^
/usr/include/c++/11/type_traits:1142:42: error: expected ‘{’ before ‘<’ token
/usr/include/c++/11/type_traits:1157:42: error: expected template-name before ‘<’ token
1157 | : public __is_nothrow_assignable_impl<_Tp&, const _Tp&>
| ^
/usr/include/c++/11/type_traits:1157:42: error: expected ‘{’ before ‘<’ token
/usr/include/c++/11/type_traits:1178:42: error: expected template-name before ‘<’ token
1178 | : public __is_nothrow_assignable_impl<_Tp&, _Tp&&>
| ^
/usr/include/c++/11/type_traits:1178:42: error: expected ‘{’ before ‘<’ token
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::is_nothrow_move_constructible<std::_Any_data>’:
/usr/include/c++/11/type_traits:152:12: required from ‘struct std::__and_<std::is_nothrow_move_constructible<std::_Any_data>, std::is_nothrow_move_assignable<std::_Any_data> >’
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::_Any_data; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:557:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {xop::MediaChannelId, xop::RtpPacket}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {xop::MediaChannelId, xop::RtpPacket}]’
src/xop/MediaSource.h:36:27: required from here
/usr/include/c++/11/type_traits:1077:12: error: invalid use of incomplete type ‘struct std::__is_nothrow_move_constructible_impl<std::_Any_data, true>’
1077 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits:1063:12: note: declaration of ‘struct std::__is_nothrow_move_constructible_impl<std::_Any_data, true>’
1063 | struct __is_nothrow_move_constructible_impl;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘struct std::__and_<std::is_nothrow_move_constructible<std::_Any_data>, std::is_nothrow_move_assignable<std::_Any_data> >’:
/usr/include/c++/11/type_traits:2678:48: required from ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::_Any_data; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’
/usr/include/c++/11/bits/std_function.h:557:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {xop::MediaChannelId, xop::RtpPacket}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {xop::MediaChannelId, xop::RtpPacket}]’
src/xop/MediaSource.h:36:27: required from here
/usr/include/c++/11/type_traits:152:12: error: ‘value’ is not a member of ‘std::is_nothrow_move_constructible<std::_Any_data>’
152 | struct __and_<_B1, _B2>
| ^~~~~~~~~~~~~~~~
/usr/include/c++/11/type_traits: In instantiation of ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = std::_Any_data; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]’:
/usr/include/c++/11/bits/std_function.h:557:11: required from ‘void std::function<_Res(_ArgTypes ...)>::swap(std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {xop::MediaChannelId, xop::RtpPacket}]’
/usr/include/c++/11/bits/std_function.h:471:16: required from ‘std::function<_Res(_ArgTypes ...)>& std::function<_Res(_ArgTypes ...)>::operator=(const std::function<_Res(_ArgTypes ...)>&) [with _Res = bool; _ArgTypes = {xop::MediaChannelId, xop::RtpPacket}]’
src/xop/MediaSource.h:36:27: required from here
/usr/include/c++/11/type_traits:2678:48: error: ‘value’ is not a member of ‘std::__and_<std::is_nothrow_move_constructible<std::_Any_data>, std::is_nothrow_move_assignable<std::_Any_data> >’
2678 | is_nothrow_move_assignable<_Tp>>::value);
| ^~~~~
make: *** [Makefile:56: objs/AACSource.o] Error 1