Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc:36:17: error: no matching function for call to 't'
*iterator = t<typename C::value_type>(0);
^~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:46:14: note: in instantiation of function template specialization 'c<std::__1::map<int, int, std::__1::less<int>, std::__1::allocator<std::__1::pair<const int, int> > > >' requested here
auto p = c<mii>(0);
^
prog.cc:12:1: note: candidate template ignored: requirement 'std::is_arithmetic<pair<const int, int> >::value' was not satisfied [with T = std::__1::pair<const int, int>]
t(int) { std::cout << __PRETTY_FUNCTION__ << '\n'; return {}; }
^
prog.cc:16:1: note: candidate template ignored: requirement 'std::is_same<std::string, pair<const int, int> >::value' was not satisfied [with T = std::__1::pair<const int, int>]
t(int) { std::cout << __PRETTY_FUNCTION__ << '\n'; return {}; }
^
prog.cc:27:10: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'T'
T<P ...> t(int) { std::cout << __PRETTY_FUNCTION__ << '\n'; return {}; }
^
1 error generated.
Exit Code:
1