SHARE
TWEET

Untitled

a guest Jan 17th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In file included from inc/serialization.h:7,
  2.                  from inc/election_messages.h:3,
  3.                  from src/election.hpp:9,
  4.                  from src/election.cpp:2:
  5. /usr/include/c++/9/variant: In instantiation of ‘static constexpr decltype(auto) std::__detail::__variant::__gen_vtable_impl<__same_return_types, std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::tuple<_Variants ...>, std::integer_sequence<long unsigned int, __indices ...> >::__visit_invoke_impl(_Visitor&&, _Variants ...) [with bool __same_return_types = true; _Result_type = void; _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}; long unsigned int ...__indices = {4}]’:
  6. /usr/include/c++/9/variant:980:28:   required from ‘static constexpr decltype(auto) std::__detail::__variant::__gen_vtable_impl<__same_return_types, std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::tuple<_Variants ...>, std::integer_sequence<long unsigned int, __indices ...> >::__do_visit_invoke(_Visitor&&, _Variants ...) [with bool __same_return_types = true; _Result_type = void; _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}; long unsigned int ...__indices = {4}]’
  7. /usr/include/c++/9/variant:996:28:   required from ‘static constexpr decltype(auto) std::__detail::__variant::__gen_vtable_impl<__same_return_types, std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::tuple<_Variants ...>, std::integer_sequence<long unsigned int, __indices ...> >::__visit_invoke(_Visitor&&, _Variants ...) [with bool __same_return_types = true; _Result_type = void; _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}; long unsigned int ...__indices = {4}]’
  8. /usr/include/c++/9/variant:1005:28:   required from ‘static constexpr auto std::__detail::__variant::__gen_vtable_impl<__same_return_types, std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...)>, std::tuple<_Variants ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply() [with bool __same_return_types = true; _Result_type = void; _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}; long unsigned int ...__indices = {4}]’
  9. /usr/include/c++/9/variant:927:56:   required from ‘static constexpr void std::__detail::__variant::__gen_vtable_impl<__same_return_types, std::__detail::__variant::_Multi_array<_Result_type (*)(_Visitor, _Variants ...), __dimensions ...>, std::tuple<_Variants ...>, std::integer_sequence<long unsigned int, __indices ...> >::_S_apply_single_alt(_Tp&, _Tp*) [with bool __do_cookie = false; long unsigned int __index = 4; _Tp = std::__detail::__variant::_Multi_array<void (*)(overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&, const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&)>; bool __same_return_types = true; _Result_type = void; _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&; long unsigned int ...__dimensions = {7}; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}; long unsigned int ...__indices = {}]’
  10. /usr/include/c++/9/variant:900:48:   required from ‘constexpr const _Array_type std::__detail::__variant::__gen_vtable<true, void, overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&, const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&>::_S_vtable’
  11. /usr/include/c++/9/variant:1638:23:   required from ‘constexpr decltype(auto) std::__do_visit(_Visitor&&, _Variants&& ...) [with bool __use_index = false; bool __same_return_types = true; _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}]’
  12. /usr/include/c++/9/variant:1654:24:   required from ‘constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...) [with _Visitor = overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >; _Variants = {const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&}]’
  13. inc/serialization.h:247:23:   required from ‘std::string serializable<T, SerializableMembers>::serialize() const [with T = election_message::introduction; SerializableMembers = {election_message::common_data}; std::string = std::__cxx11::basic_string<char>]’
  14. src/election.cpp:298:55:   required from here
  15. /usr/include/c++/9/variant:1019:40:   in ‘constexpr’ expansion of ‘std::__detail::__variant::__gen_vtable_impl<true, std::__detail::__variant::_Multi_array<void (*)(overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&, const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&), 7>, std::tuple<const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&>, std::integer_sequence<long unsigned int> >::_S_apply()’
  16. /usr/include/c++/9/variant:885:19:   in ‘constexpr’ expansion of ‘std::__detail::__variant::__gen_vtable_impl<true, std::__detail::__variant::_Multi_array<void (*)(overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >&&, const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&), 7>, std::tuple<const std::variant<unsigned int election_message::introduction::*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*, std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*, election_message::common_data, election_message::common_data election_message::introduction::*, std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*>&>, std::integer_sequence<long unsigned int> >::_S_apply_all_alts<0, 1, 2, 3, 4, 5, 6>(__vtable, (std::make_index_sequence<7>(), std::make_index_sequence<7>()))’
  17. /usr/include/c++/9/variant:972:24: error: no matching function for call to ‘__invoke(overloaded<std::function<void(unsigned int election_message::introduction::*)>, std::function<void(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > election_message::introduction::*)>, std::function<void(std::vector<unsigned int, std::allocator<unsigned int> > election_message::introduction::*)>, std::function<void(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > election_message::introduction::*)>, std::function<void(election_message::common_data election_message::introduction::*)>, std::function<void(std::vector<election_message::common_data, std::allocator<election_message::common_data> > election_message::introduction::*)> >, const election_message::common_data&)’
  18.   972 |    return std::__invoke(std::forward<_Visitor>(__visitor),
  19.       |           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20.   973 |        __element_by_index_or_cookie<__indices>(
  21.       |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22.   974 |   std::forward<_Variants>(__vars))...);
  23.       |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top