C++11 build error on mac
Trying to compile the current master on macOS, I am getting the error below.
$ clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
[ 21%] Building CXX object base/CMakeFiles/plmbase.dir/proj_image_dir.cxx.o
/Users/fedorov/github/plastimatch/src/plastimatch/base/proj_image.cxx:422:10: warning: 'this' pointer cannot be null in
well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
if (!this) {
~^~~~
/Users/fedorov/github/plastimatch/src/plastimatch/base/proj_image_dir.cxx:59:7: error: delegating constructors are permitted
only in C++11
: Proj_image_dir (dir.c_str())
^~~~~~~~~~~~~~
1 error generated.
make[5]: *** [base/CMakeFiles/plmbase.dir/proj_image_dir.cxx.o] Error 1