Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

$
prog.cc: In function 'int main()':
prog.cc:22:17: error: call of overloaded 'func()' is ambiguous
     B().func<0>();
                 ^
prog.cc:13:25: note: candidate: void B::func() [with char <anonymous> = '\000']
     template<char> void func()
                         ^
prog.cc:5:24: note: candidate: void A::func() [with int <anonymous> = 0]
     template<int> void func()
                        ^
Exit Code:
1