Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

Compiler

Options

Author

anonymous

about 7 years ago

$
prog.cc: In instantiation of 'void Example<T>::FunctionImpl(float, Example<T>::tag<float>) [with T = {double, short int, int, char, float}]':
prog.cc:19:42:   required from 'void Example<T>::Function(U) [with U = float; T = {double, short int, int, char, float}]'
prog.cc:47:20:   required from here
prog.cc:31:29: warning: parameter 'arg' set but not used [-Wunused-but-set-parameter]
     void FunctionImpl(float arg, tag<float>)
                       ~~~~~~^~~
prog.cc: In instantiation of 'void detail::ExampleImpl<T, U>::operator()(T) [with T = double; U = {short int, int, char, float}]':
prog.cc:28:9:   required from 'void Example<T>::FunctionImpl(U, Example<T>::tag<U>) [with U = double; T = {double, short int, int, char, float}]'
prog.cc:19:42:   required from 'void Example<T>::Function(U) [with U = double; T = {double, short int, int, char, float}]'
prog.cc:45:19:   required from here
prog.cc:8:27: warning: unused parameter '_arg' [-Wunused-parameter]
         void operator()(T _arg){std::cout << "ExampleImpl operator() called\n";}
                         ~~^~~~
prog.cc: In instantiation of 'void detail::ExampleImpl<T, U>::operator()(T) [with T = char; U = {}]':
prog.cc:28:9:   required from 'void Example<T>::FunctionImpl(U, Example<T>::tag<U>) [with U = char; T = {double, short int, int, char, float}]'
prog.cc:19:42:   required from 'void Example<T>::Function(U) [with U = char; T = {double, short int, int, char, float}]'
prog.cc:46:19:   required from here
prog.cc:8:27: warning: unused parameter '_arg' [-Wunused-parameter]
prog.cc: In instantiation of 'void detail::ExampleImpl<T, U>::operator()(T) [with T = int; U = {}]':
prog.cc:37:13:   required from 'void Example<T>::FunctionImpl(float, Example<T>::tag<float>) [with T = {int}]'
prog.cc:19:42:   required from 'void Example<T>::Function(U) [with U = float; T = {int}]'
prog.cc:50:21:   required from here
prog.cc:8:27: warning: unused parameter '_arg' [-Wunused-parameter]
ExampleImpl operator() called
ExampleImpl operator() called
Specialization for float
ExampleImpl operator() called
Exit Code:
0