On 2015-08-24 16:04 (+0200), su_v wrote:
On 2015-08-24 15:48 (+0200), Alex Valavanis wrote:
@suv - Do you know what the oldest version of OS X is that fully supports the C++11 standard?
AFAIK it is feasible with OS X 10.8 Mountain Lion (if switching C++ runtime to libc++); full native support came with OS X 10.9 Mavericks (libc++ is default):
The default C++ runtime on OS X 10.9 and later is libc++ which supports C++11 but on OS X 10.8 and earlier the default C++ runtime is a version of libstdc++ based on GCC 4.2.1 which does not support C++11.
Just to add - that last quote is from here: https://trac.macports.org/wiki/LibcxxOnOlderSystems which details how C++11 support could be enabled on older systems - there's no guarantee though that it works (any package might fail to compile for various reasons - recent example is ncurses 6.0 which fails to build on Lion if MacPorts was configured to use 'libc++' as default C++ runtime). Overall, the effort seems rather huge ((temporary) disk space requirements for llvm+clang, build times for multiple llvm ports and frequent updates) and is likely to break apart easily - without having full upstream support in MacPorts. It is also unknown whether (self-contained and relocatable) application bundles based on such a custom tool chain work without compatibility issues on other (newer) OS X versions.