Author
anonymous
over 5 years ago
Language
C++
Compiler
gcc HEAD 10.0.0 20190825 (experimental)
Options
Don't Use Boost
C++17
no pedantic
Author
anonymous
over 5 years ago
$ g++ prog.cc -std=c++17
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant: In instantiation of 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)> mutable [with auto:3 = const me_data&; auto:4 = std::integral_constant<long unsigned int, 0>]':
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2462:26: required by substitution of 'template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 0>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2473:55: required from 'struct std::__result_of_impl<false, false, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 0> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2478:12: required from 'struct std::__invoke_result<std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 0> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/invoke.h:89:5: required by substitution of 'template<class _Callable, class ... _Args> constexpr typename std::__invoke_result<_Functor, _ArgTypes>::type std::__invoke(_Callable&&, _Args&& ...) [with _Callable = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 0>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1003:17: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:961:56: required from 'static constexpr void std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...), __dimensions ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply_single_alt(_Tp&, _Tp*) [with bool __do_cookie = true; long unsigned int __index = 0; _Tp = std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&)>; _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&; long unsigned int ...__dimensions = {2}; _Variants = {const std::variant<me_data, me_data>&}; long unsigned int ...__indices = {}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:945:47: required from 'constexpr const _Array_type std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_idx_cookie, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&>::_S_vtable'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1648:23: required from 'constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:198:44: required from 'constexpr void std::__detail::__variant::__raw_idx_visit(_Visitor&&, _Variants&& ...) [with _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:595:28: required from 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:643:12: required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1036:67: in 'constexpr' expansion of 'std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&), 2>, std::integer_sequence<long unsigned int> >::_S_apply()'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:934:19: in 'constexpr' expansion of 'std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&), 2>, std::integer_sequence<long unsigned int> >::_S_apply_all_alts<0, 1>(__vtable, std::make_index_sequence<2>())'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: error: no matching function for call to 'std::variant<me_data, me_data>::variant(const me_data&)'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1368:2: note: candidate: 'template<long unsigned int _Np, class _Up, class ... _Args, class _Tp, class> constexpr std::variant<_Types>::variant(std::in_place_index_t<_Np>, std::initializer_list<_Up>, _Args&& ...) [with long unsigned int _Np = _Np; _Up = _Up; _Args = {_Args ...}; _Tp = _Tp; <template-parameter-2-5> = <template-parameter-1-5>; _Types = {me_data, me_data}]'
1368 | variant(in_place_index_t<_Np>, initializer_list<_Up> __il,
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1368:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_index_t<_Idx>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1357:2: note: candidate: 'template<long unsigned int _Np, class ... _Args, class _Tp, class> constexpr std::variant<_Types>::variant(std::in_place_index_t<_Np>, _Args&& ...) [with long unsigned int _Np = _Np; _Args = {_Args ...}; _Tp = _Tp; <template-parameter-2-4> = <template-parameter-1-4>; _Types = {me_data, me_data}]'
1357 | variant(in_place_index_t<_Np>, _Args&&... __args)
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1357:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_index_t<_Idx>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1347:2: note: candidate: 'template<class _Tp, class _Up, class ... _Args, class> constexpr std::variant<_Types>::variant(std::in_place_type_t<_Tp>, std::initializer_list<_Up>, _Args&& ...) [with _Tp = _Tp; _Up = _Up; _Args = {_Args ...}; <template-parameter-2-4> = <template-parameter-1-4>; _Types = {me_data, me_data}]'
1347 | variant(in_place_type_t<_Tp>, initializer_list<_Up> __il,
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1347:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_type_t<_Tp>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1337:2: note: candidate: 'template<class _Tp, class ... _Args, class> constexpr std::variant<_Types>::variant(std::in_place_type_t<_Tp>, _Args&& ...) [with _Tp = _Tp; _Args = {_Args ...}; <template-parameter-2-3> = <template-parameter-1-3>; _Types = {me_data, me_data}]'
1337 | variant(in_place_type_t<_Tp>, _Args&&... __args)
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1337:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_type_t<_Tp>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1327:2: note: candidate: 'template<class _Tp, class, class, class _Tj, class> constexpr std::variant<_Types>::variant(_Tp&&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; <template-parameter-2-3> = <template-parameter-1-3>; _Tj = _Tj; <template-parameter-2-5> = <template-parameter-1-5>; _Types = {me_data, me_data}]'
1327 | variant(_Tp&& __t)
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1327:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant: In substitution of 'template<class ... _Types> template<class _Tp, class> using __accepted_type = std::variant<_Types>::__to_type<__accepted_index<_Tp> > [with _Tp = const me_data&; <template-parameter-2-2> = std::enable_if<true, void>::type; _Types = {me_data, me_data}]':
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1323:9: required from 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)> mutable [with auto:3 = const me_data&; auto:4 = std::integral_constant<long unsigned int, 0>]'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2462:26: required by substitution of 'template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 0>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2473:55: required from 'struct std::__result_of_impl<false, false, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 0> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2478:12: required from 'struct std::__invoke_result<std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 0> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/invoke.h:89:5: required by substitution of 'template<class _Callable, class ... _Args> constexpr typename std::__invoke_result<_Functor, _ArgTypes>::type std::__invoke(_Callable&&, _Args&& ...) [with _Callable = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 0>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1003:17: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:961:56: required from 'static constexpr void std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...), __dimensions ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply_single_alt(_Tp&, _Tp*) [with bool __do_cookie = true; long unsigned int __index = 0; _Tp = std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&)>; _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&; long unsigned int ...__dimensions = {2}; _Variants = {const std::variant<me_data, me_data>&}; long unsigned int ...__indices = {}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:945:47: required from 'constexpr const _Array_type std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_idx_cookie, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&>::_S_vtable'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1648:23: required from 'constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:198:44: required from 'constexpr void std::__detail::__variant::__raw_idx_visit(_Visitor&&, _Variants&& ...) [with _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:595:28: required from 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:643:12: required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1293:8: error: no type named 'type' in 'struct std::enable_if<false, void>'
1293 | using __accepted_type = __to_type<__accepted_index<_Tp>>;
| ^~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant: In instantiation of 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)> mutable [with auto:3 = const me_data&; auto:4 = std::integral_constant<long unsigned int, 0>]':
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2462:26: required by substitution of 'template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 0>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2473:55: required from 'struct std::__result_of_impl<false, false, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 0> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2478:12: required from 'struct std::__invoke_result<std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 0> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/invoke.h:89:5: required by substitution of 'template<class _Callable, class ... _Args> constexpr typename std::__invoke_result<_Functor, _ArgTypes>::type std::__invoke(_Callable&&, _Args&& ...) [with _Callable = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 0>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1003:17: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:961:56: required from 'static constexpr void std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...), __dimensions ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply_single_alt(_Tp&, _Tp*) [with bool __do_cookie = true; long unsigned int __index = 0; _Tp = std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&)>; _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&; long unsigned int ...__dimensions = {2}; _Variants = {const std::variant<me_data, me_data>&}; long unsigned int ...__indices = {}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:945:47: required from 'constexpr const _Array_type std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_idx_cookie, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&>::_S_vtable'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1648:23: required from 'constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:198:44: required from 'constexpr void std::__detail::__variant::__raw_idx_visit(_Visitor&&, _Variants&& ...) [with _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:595:28: required from 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:643:12: required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1315:7: note: candidate: 'std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {me_data, me_data}]'
1315 | variant(variant&&) = default;
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1315:15: note: no known conversion for argument 1 from 'const me_data' to 'std::variant<me_data, me_data>&&'
1315 | variant(variant&&) = default;
| ^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1314:7: note: candidate: 'std::variant<_Types>::variant(const std::variant<_Types>&) [with _Types = {me_data, me_data}]'
1314 | variant(const variant& __rhs) = default;
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1314:30: note: no known conversion for argument 1 from 'const me_data' to 'const std::variant<me_data, me_data>&'
1314 | variant(const variant& __rhs) = default;
| ~~~~~~~~~~~~~~~^~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1313:7: note: candidate: 'constexpr std::variant<_Types>::variant() [with _Types = {me_data, me_data}]'
1313 | variant() = default;
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1313:7: note: candidate expects 0 arguments, 1 provided
/opt/wandbox/gcc-head/include/c++/10.0.0/variant: In instantiation of 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)> mutable [with auto:3 = const me_data&; auto:4 = std::integral_constant<long unsigned int, 1>]':
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2462:26: required by substitution of 'template<class _Fn, class ... _Args> static std::__result_of_success<decltype (declval<_Fn>()((declval<_Args>)()...)), std::__invoke_other> std::__result_of_other_impl::_S_test(int) [with _Fn = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 1>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2473:55: required from 'struct std::__result_of_impl<false, false, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 1> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/type_traits:2478:12: required from 'struct std::__invoke_result<std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>, const me_data&, std::integral_constant<long unsigned int, 1> >'
/opt/wandbox/gcc-head/include/c++/10.0.0/bits/invoke.h:89:5: required by substitution of 'template<class _Callable, class ... _Args> constexpr typename std::__invoke_result<_Functor, _ArgTypes>::type std::__invoke(_Callable&&, _Args&& ...) [with _Callable = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Args = {const me_data&, std::integral_constant<long unsigned int, 1>}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1003:17: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:961:56: required from 'static constexpr void std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...), __dimensions ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply_single_alt(_Tp&, _Tp*) [with bool __do_cookie = true; long unsigned int __index = 1; _Tp = std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&)>; _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&; long unsigned int ...__dimensions = {2}; _Variants = {const std::variant<me_data, me_data>&}; long unsigned int ...__indices = {}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:945:47: required from 'constexpr const _Array_type std::__detail::__variant::__gen_vtable<std::__detail::__variant::__variant_idx_cookie, std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&>::_S_vtable'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1648:23: required from 'constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with _Result_type = std::__detail::__variant::__variant_idx_cookie; _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:198:44: required from 'constexpr void std::__detail::__variant::__raw_idx_visit(_Visitor&&, _Variants&& ...) [with _Visitor = std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>; _Variants = {const std::variant<me_data, me_data>&}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:595:28: required from 'std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>& std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:643:12: required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1036:67: in 'constexpr' expansion of 'std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&), 2>, std::integer_sequence<long unsigned int> >::_S_apply()'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:934:19: in 'constexpr' expansion of 'std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<std::__detail::__variant::__variant_idx_cookie (*)(std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>::operator=(const std::__detail::__variant::_Copy_assign_base<<anonymous>, _Types>&) [with bool <anonymous> = false; _Types = {me_data, me_data}]::<lambda(auto:3&&, auto:4)>&&, const std::variant<me_data, me_data>&), 2>, std::integer_sequence<long unsigned int> >::_S_apply_all_alts<0, 1>(__vtable, std::make_index_sequence<2>())'
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: error: no matching function for call to 'std::variant<me_data, me_data>::variant(const me_data&)'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1368:2: note: candidate: 'template<long unsigned int _Np, class _Up, class ... _Args, class _Tp, class> constexpr std::variant<_Types>::variant(std::in_place_index_t<_Np>, std::initializer_list<_Up>, _Args&& ...) [with long unsigned int _Np = _Np; _Up = _Up; _Args = {_Args ...}; _Tp = _Tp; <template-parameter-2-5> = <template-parameter-1-5>; _Types = {me_data, me_data}]'
1368 | variant(in_place_index_t<_Np>, initializer_list<_Up> __il,
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1368:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_index_t<_Idx>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1357:2: note: candidate: 'template<long unsigned int _Np, class ... _Args, class _Tp, class> constexpr std::variant<_Types>::variant(std::in_place_index_t<_Np>, _Args&& ...) [with long unsigned int _Np = _Np; _Args = {_Args ...}; _Tp = _Tp; <template-parameter-2-4> = <template-parameter-1-4>; _Types = {me_data, me_data}]'
1357 | variant(in_place_index_t<_Np>, _Args&&... __args)
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1357:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_index_t<_Idx>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1347:2: note: candidate: 'template<class _Tp, class _Up, class ... _Args, class> constexpr std::variant<_Types>::variant(std::in_place_type_t<_Tp>, std::initializer_list<_Up>, _Args&& ...) [with _Tp = _Tp; _Up = _Up; _Args = {_Args ...}; <template-parameter-2-4> = <template-parameter-1-4>; _Types = {me_data, me_data}]'
1347 | variant(in_place_type_t<_Tp>, initializer_list<_Up> __il,
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1347:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_type_t<_Tp>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1337:2: note: candidate: 'template<class _Tp, class ... _Args, class> constexpr std::variant<_Types>::variant(std::in_place_type_t<_Tp>, _Args&& ...) [with _Tp = _Tp; _Args = {_Args ...}; <template-parameter-2-3> = <template-parameter-1-3>; _Types = {me_data, me_data}]'
1337 | variant(in_place_type_t<_Tp>, _Args&&... __args)
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1337:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:617:6: note: 'me_data' is not derived from 'std::in_place_type_t<_Tp>'
617 | = variant<_Types...>(__rhs_mem);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1327:2: note: candidate: 'template<class _Tp, class, class, class _Tj, class> constexpr std::variant<_Types>::variant(_Tp&&) [with _Tp = _Tp; <template-parameter-2-2> = <template-parameter-1-2>; <template-parameter-2-3> = <template-parameter-1-3>; _Tj = _Tj; <template-parameter-2-5> = <template-parameter-1-5>; _Types = {me_data, me_data}]'
1327 | variant(_Tp&& __t)
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1327:2: note: template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1315:7: note: candidate: 'std::variant<_Types>::variant(std::variant<_Types>&&) [with _Types = {me_data, me_data}]'
1315 | variant(variant&&) = default;
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1315:15: note: no known conversion for argument 1 from 'const me_data' to 'std::variant<me_data, me_data>&&'
1315 | variant(variant&&) = default;
| ^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1314:7: note: candidate: 'std::variant<_Types>::variant(const std::variant<_Types>&) [with _Types = {me_data, me_data}]'
1314 | variant(const variant& __rhs) = default;
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1314:30: note: no known conversion for argument 1 from 'const me_data' to 'const std::variant<me_data, me_data>&'
1314 | variant(const variant& __rhs) = default;
| ~~~~~~~~~~~~~~~^~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1313:7: note: candidate: 'constexpr std::variant<_Types>::variant() [with _Types = {me_data, me_data}]'
1313 | variant() = default;
| ^~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/variant:1313:7: note: candidate expects 0 arguments, 1 provided
Exit Code:
1