Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

a.h

$
prog.cc: In constructor 'S::S(int)':
prog.cc:10:20: warning: unused parameter 'i' [-Wunused-parameter]
     explicit S(int i=4) {}
                ~~~~^~~
prog.cc: In instantiation of 'A<T, N>::A() [with T = S; long unsigned int N = 3]':
prog.cc:14:13:   required from here
prog.cc:6:15: warning: converting to 'S' from initializer list would use explicit constructor 'S::S(int)'
     A() : m_a{} {}
               ^
prog.cc:6:15: note: in C++11 and above a default constructor can be explicit
prog.cc:6:15: warning: converting to 'S' from initializer list would use explicit constructor 'S::S(int)'
prog.cc:6:15: note: in C++11 and above a default constructor can be explicit
prog.cc:6:15: warning: converting to 'S' from initializer list would use explicit constructor 'S::S(int)'
prog.cc:6:15: note: in C++11 and above a default constructor can be explicit
Exit Code:
0