SergeyKorytnik
SergeyKorytnik
Defaulting constructor and destructor is great! Just do it in the options.cc and not in a header file!
See the fifth variant of default constructing at https://en.cppreference.com/w/cpp/language/default_constructor#:~:text=A%20default%20constructor%20is%20a,public%20default%20constructor%20is%20DefaultConstructible. In header file ```cpp class Options { public: Options(); ~Options(); ... }; ``` in options.cc: ```cpp Options::Options()=default; Options::~Options()=default; ``` It guarantees...
The Options problem happened because constructor and destructor were generated by different compiler versions with slightly different STL (Microsoft debug iterators). Constructors/destructors dealing with STL objects (std::map in the Options...