Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

clang HEAD 9.0.0 (https://github.com/llvm-mirror/clang.git d9f9d6531f3c8c8ce22b63989cdeaeb220f0f36a) (https://github.com/llvm-mirror/llvm.git e3fd2a343a10616bd1d7e010c32c675fc934802e)

Options
Warnings
Boost 1.70.0
C++2a
no pedantic

Author

anonymous

almost 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/clang-head/include -std=c++2a
prog.cc:7:27: warning: unused parameter 'a' [-Wunused-parameter]
    virtual void func(int a) { cout << "base" << endl; } // replace above line with this and it works
                          ^
prog.cc:11:38: warning: unused parameter 't' [-Wunused-parameter]
    template<typename T> void func(T t) {
                                     ^
prog.cc:15:34: warning: unused parameter 'a' [-Wunused-parameter]
template<> void B::func<int>(int a) { cout <<"hello 2"<<endl; }
                                 ^
3 warnings generated.
base
Exit Code:
0