Started by ceeac, October 27, 2019, 03:32:26 PM
0 Members and 1 Guest are viewing this topic.
Quote from: prissi on November 02, 2019, 02:41:23 PMPersonally, I think that having the copy constructor doing something else than the assignment operator is a really bad idea that should rather generate lots of warnings. I.e. defining both should generate warnings ...
Quote from: prissi on November 02, 2019, 02:41:23 PMThe copy contructor is only there, because otherwise one could not convert a scr_coord into a scr_size.
Quote from: Ters on November 02, 2019, 09:33:10 AMAlthough I haven't tested, I assume it is because the lack of explicit definition give warnings with GCC 9. Since the classes have one or more constructors, generation of automatic assignment operators are deprecated in some version of the C++ standard, perhaps one that is default with GCC 9. Whether the assignment operators are actually used, is not something I know how to check without reading through the code.
Quote from: ceeac on November 09, 2019, 11:01:01 PMSimutrans enables a pre-C++11 standard explicitly anyway