Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

Compiler

Options

Author

anonymous

almost 5 years ago

q.h
foo.h
q.cpp

$
prog.cc: In function 'void sort(Array<T>&) [with T = String]':
prog.cc:13:45: warning: unused parameter 'v' [-Wunused-parameter]
   13 | template<> void sort<String>(Array<String>& v)    { cout<<"hi"<<endl;}
      |                              ~~~~~~~~~~~~~~~^
In file included from q.cpp:2:
q.h: In instantiation of 'void sort(Array<T>&) [with T = String]':
q.cpp:4:9:   required from here
q.h:3:39: warning: unused parameter 'v' [-Wunused-parameter]
    3 | template<class T> void sort(Array<T>& v) { /* ... */ }
      |                             ~~~~~~~~~~^
hi
Exit Code:
0