Compatibility Problems: compiling with MacOS 10.14
Hi all, I have updated my Xcode as suggested in another thread and the compilation made big progress. Now it terminates with a different error, see below:
/Users/oliver/Corsika/corsika-master/Processes/TrackingLine/testTrackingLine.cc:57:25: error: call to unavailable member function 'value': introduced in macOS 10.14 auto [t1, t2] = opt.value(); ~~~~^~~~~
/Users/oliver/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable constexpr value_type const& value() const& ^
/Users/oliver/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::__1::optional<std::__1::pair<phys::units::quantity<phys::units::dimensions<0, 0, 1, 0, 0, 0, 0, 0>, double>, phys::units::quantity<phys::units::dimensions<0, 0, 1, 0, 0, 0, 0, 0>, double> > >', but method is not marked const constexpr value_type& value() & ^
/Users/oliver/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::__1::optional<std::__1::pair<phys::units::quantity<phys::units::dimensions<0, 0, 1, 0, 0, 0, 0, 0>, double>, phys::units::quantity<phys::units::dimensions<0, 0, 1, 0, 0, 0, 0, 0>, double> > >', but method is not marked const constexpr value_type&& value() && ^
/Users/oliver/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument constexpr value_type const&& value() const&&