SHARE
TWEET

Untitled

a guest Mar 26th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mmain.cpp:104:52: error: implicit instantiation of undefined template 'std::__1::tuple_size<int>'
  2.   encode_impl(t, os, std::make_index_sequence<std::tuple_size<T>::value>{ });
  3.                                                    ^
  4. mmain.cpp:115:8: note: in instantiation of function template specialization 'encode_one<false, int>' requested here
  5.     { (encode_one<I == last>(t.template get<I>(), os), 0)... };
  6.        ^
  7. mmain.cpp:85:3: note: in instantiation of function template specialization 'encode_impl<Aa, 0, 1>' requested here
  8.   encode_impl(t, os, std::make_index_sequence<std::tuple_size<T>::value>{ });
  9.   ^
  10. mmain.cpp:121:5: note: in instantiation of function template specialization 'encode<Aa>' requested here
  11.     encode(a, std::cout);
  12.     ^
  13. /Library/Developer/CommandLineTools/usr/include/c++/v1/__tuple:25:49: note: template is declared here
  14. template <class _Tp> class _LIBCPP_TEMPLATE_VIS tuple_size;
  15.                                                 ^
  16. mmain.cpp:104:52: error: implicit instantiation of undefined template 'std::__1::tuple_size<int>'
  17.   encode_impl(t, os, std::make_index_sequence<std::tuple_size<T>::value>{ });
  18.                                                    ^
  19. mmain.cpp:115:8: note: in instantiation of function template specialization 'encode_one<true, int>' requested here
  20.     { (encode_one<I == last>(t.template get<I>(), os), 0)... };
  21.        ^
  22. mmain.cpp:85:3: note: in instantiation of function template specialization 'encode_impl<Aa, 0, 1>' requested here
  23.   encode_impl(t, os, std::make_index_sequence<std::tuple_size<T>::value>{ });
  24.   ^
  25. mmain.cpp:121:5: note: in instantiation of function template specialization 'encode<Aa>' requested here
  26.     encode(a, std::cout);
  27.     ^
  28. /Library/Developer/CommandLineTools/usr/include/c++/v1/__tuple:25:49: note: template is declared here
  29. template <class _Tp> class _LIBCPP_TEMPLATE_VIS tuple_size;
  30.                                                 ^
  31. mmain.cpp:115:8: error: no matching function for call to 'encode_one'
  32.     { (encode_one<I == last>(t.template get<I>(), os), 0)... };
  33.        ^~~~~~~~~~~~~~~~~~~~~
  34. mmain.cpp:85:3: note: in instantiation of function template specialization 'encode_impl<Bb, 0, 1>' requested here
  35.   encode_impl(t, os, std::make_index_sequence<std::tuple_size<T>::value>{ });
  36.   ^
  37. mmain.cpp:123:5: note: in instantiation of function template specialization 'encode<Bb>' requested here
  38.     encode(b, std::cout);
  39.     ^
  40. mmain.cpp:92:1: note: candidate template ignored: requirement '!is_tuple_like<int>(0)' was not satisfied [with is_last = true, T = int]
  41. encode_one(T const& t, std::ostream& os)->
  42. ^
  43. mmain.cpp:101:1: note: candidate template ignored: substitution failure [with is_last = true, T = int]
  44. encode_one(T const& t, std::ostream& os)->
  45. ^
  46. 3 errors generated.
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