Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

Compiler

Options

typename.h

$
prog.cc: In instantiation of 'struct get_helper<2ul, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>':
prog.cc:57:5:   required by substitution of 'template<long unsigned int kIndex, class ... tTypes> typename get_helper<(sizeof... (tTypes) - kIndex), tTypes ...>::type& get(tuple<tRest ...>&) [with long unsigned int kIndex = 0ul; tTypes = {int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}]'
prog.cc:67:13:   required from here
prog.cc:49:18: error: forming pointer to reference type 'get_helper<2ul, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::type {aka int&}'
     static type* get(tuple<tFirst, tRest...>& iTuple)
                  ^
prog.cc: In instantiation of 'typename get_helper<(sizeof... (tTypes) - kIndex), tTypes ...>::type& get(tuple<tRest ...>&) [with long unsigned int kIndex = 0ul; tTypes = {int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename get_helper<(sizeof... (tTypes) - kIndex), tTypes ...>::type = int&]':
prog.cc:67:13:   required from here
prog.cc:59:65: error: 'get' is not a member of 'get_helper<2ul, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>'
     return *get_helper<sizeof...(tTypes)-kIndex, tTypes...>::get(iTuple);
                                                                 ^
prog.cc: In instantiation of 'typename get_helper<(sizeof... (tTypes) - kIndex), tTypes ...>::type& get(tuple<tRest ...>&) [with long unsigned int kIndex = 1ul; tTypes = {int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename get_helper<(sizeof... (tTypes) - kIndex), tTypes ...>::type = std::__cxx11::basic_string<char>&]':
prog.cc:68:13:   required from here
prog.cc:59:65: error: 'get' is not a member of 'get_helper<1ul, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>'
Exit Code:
1