Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc: In function 'int main()':
prog.cc:23:11: error: no matching function for call to 't(int, int)'
     t(1, 2);
           ^
prog.cc:10:3: note: candidate: 'template<class R, class A, class B> R t(A, B)'
 R t(A a, B b)
   ^
prog.cc:10:3: note:   template argument deduction/substitution failed:
prog.cc:23:11: note:   couldn't deduce template parameter 'R'
     t(1, 2);
           ^
prog.cc:24:15: error: no matching function for call to 't(char, char)'
     t('1', '2');
               ^
prog.cc:10:3: note: candidate: 'template<class R, class A, class B> R t(A, B)'
 R t(A a, B b)
   ^
prog.cc:10:3: note:   template argument deduction/substitution failed:
prog.cc:24:15: note:   couldn't deduce template parameter 'R'
     t('1', '2');
               ^
prog.cc:25:12: error: no matching function for call to 't(int, double)'
     t(1, 2.);
            ^
prog.cc:10:3: note: candidate: 'template<class R, class A, class B> R t(A, B)'
 R t(A a, B b)
   ^
prog.cc:10:3: note:   template argument deduction/substitution failed:
prog.cc:25:12: note:   couldn't deduce template parameter 'R'
     t(1, 2.);
            ^
prog.cc:26:14: error: no matching function for call to 't(double, float)'
     t(1., 2.f);
              ^
prog.cc:10:3: note: candidate: 'template<class R, class A, class B> R t(A, B)'
 R t(A a, B b)
   ^
prog.cc:10:3: note:   template argument deduction/substitution failed:
prog.cc:26:14: note:   couldn't deduce template parameter 'R'
     t(1., 2.f);
              ^
Exit Code:
1