News:

Want to praise Simutrans?
Your feedback is important for us ;D.

Fix for pre-C++11 compilers

Started by ceeac, March 11, 2020, 04:02:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ceeac

Fixes compilation when using compilers that do not enable C++11 or newer by default (or when using -std=c++03 explicitly), like the macOS nightly build.

Mariculous

Tbh I am not quite sure why simutrans still builds against an ancient standard on macOS. Windows and Linux builds seem to target C++11.
Changing the std for macOS builds to C++11 (or even newer) should be preferred over backporting to C++03 and

This is just my opinion. Usually I don't care about macOS at all, so there might be some macOS specific pitfalls I did not consider.

prissi

#2
Since there are no newer servers for Mac OS, I have to use whatever Github offers me. Anyway, for portability not using extensions is the best.

Ok, I have rather to define the structure by hand. Stupid ...

Dwachs

why is there a union anyway? Memory consumption should not be an issue here.
Parsley, sage, rosemary, and maggikraut.