Related to this C++17 issue: I uploaded a new package version to CRAN a few days ago and today received the message below. I am reporting back in case it influences the PR. (I edited the message to only include relevant parts; I believe @phcooney also received it)
These are now being compiled with C++17. Unfortunately they make use of
Boost headers that are not compliant with that standard, using functions
which were deprecated in C++11 and removed in C++17.One workaround is to declared a dependence on C++14
Reading the headers suggested
PKG_CPPFLAGS = -D_HAS_AUTO_PTR_ETC=0
in src/Makevars[.win] would suffice, and I tested that for DDD (already
reported). Or you could add
#if __cplusplus >= 201703L
# define _HAS_AUTO_PTR_ETC 0
#endif
at the top of the files using Boost headers. (It looks like the stan
users should get that done upstream.)