Skip to content
Prev 555 / 12125 Next

[R-pkg-devel] Checking for C++11

Thanks, that helped. However, a user with gcc < 4.7 will still get cryptic errors. 

I had another idea: I created a file src/AAA_check_cpp11.cpp, checking the preprocessor directive ?__cplusplus?, see https://github.com/mnwright/ranger/blob/master/ranger-r-package/ranger/src/AAA_check_cpp11.cpp <https://github.com/mnwright/ranger/blob/master/ranger-r-package/ranger/src/AAA_check_cpp11.cpp>. This isn?t beautiful, but the error message is better and it?s fine on CRAN.