Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180919 (experimental)

Options
Warnings
Boost 1.68.0
C++17(GNU)
no pedantic

Author

anonymous

over 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++17
prog.cc: In instantiation of 'void impl::send(list_t, std::false_type, std::true_type, std::false_type) [with list_t = std::vector<int>; std::false_type = std::integral_constant<bool, false>; std::true_type = std::integral_constant<bool, true>]':
prog.cc:39:13:   required from 'decltype (impl::send(std::move(t), is_pair<T>{}, is_list<T>{}, std::is_integral<_Tp>{})) send(T) [with T = std::vector<int>; decltype (impl::send(std::move(t), is_pair<T>{}, is_list<T>{}, std::is_integral<_Tp>{})) = void]'
prog.cc:46:12:   required from here
prog.cc:27:20: error: no matching function for call to 'send<value_t>(const value_t&)'
27 |       send<value_t>(elem);
   |       ~~~~~~~~~~~~~^~~~~~
prog.cc:14:8: note: candidate: 'template<class pair_t> void impl::send(pair_t, std::true_type, std::false_type, std::false_type)'
14 |   void send(pair_t pair, std::true_type /* is pair */, std::false_type, std::false_type) {
   |        ^~~~
prog.cc:14:8: note:   template argument deduction/substitution failed:
prog.cc:27:20: note:   candidate expects 4 arguments, 1 provided
27 |       send<value_t>(elem);
   |       ~~~~~~~~~~~~~^~~~~~
prog.cc:23:8: note: candidate: 'template<class list_t> void impl::send(list_t, std::false_type, std::true_type, std::false_type)'
23 |   void send(list_t list, std::false_type, std::true_type /* list */, std::false_type) {
   |        ^~~~
prog.cc:23:8: note:   template argument deduction/substitution failed:
prog.cc:27:20: note:   candidate expects 4 arguments, 1 provided
27 |       send<value_t>(elem);
   |       ~~~~~~~~~~~~~^~~~~~
Exit Code:
1