Author
anonymous
almost 6 years ago
Language
Compiler
Options
Author
anonymous
almost 6 years ago
$ prog.cc: In constructor 'Car::Car(std::vector<std::__cxx11::basic_string<char> >)':
prog.cc:20:36: warning: 'Car::mCylinders' will be initialized after [-Wreorder]
20 | const std::vector<std::string> mCylinders;
| ^~~~~~~~~~
prog.cc:19:18: warning: 'const Engine Car::mEngine' [-Wreorder]
19 | const Engine mEngine;
| ^~~~~~~
prog.cc:21:5: warning: when initialized here [-Wreorder]
21 | Car(std::vector<std::string> cylinders):
| ^~~
Engine has cylinders
Exit Code:
0