diff --git a/DESCRIPTION b/DESCRIPTION index 64acc597..1809564b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: ranger Type: Package Title: A Fast Implementation of Random Forests -Version: 0.17.1 -Date: 2025-06-04 +Version: 0.17.2 +Date: 2026-01-15 Authors@R: c( person("Marvin N.", "Wright", email = "cran@wrig.de", role = c("aut", "cre")), person("Stefan", "Wager", role = "ctb"), @@ -21,7 +21,7 @@ Suggests: survival, testthat Encoding: UTF-8 -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 URL: https://imbs-hl.github.io/ranger/, https://github.com/imbs-hl/ranger BugReports: https://github.com/imbs-hl/ranger/issues diff --git a/NEWS.md b/NEWS.md index 0f2f6cc1..99581931 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,7 @@ +# ranger 0.17.2 +* Fix compilation with C++20 + # ranger 0.17.1 * Fix bug where missing value handling lead to negative impurity importance values * Slightly change the missing value algorithm (see docs) diff --git a/cpp_version/src/version.h b/cpp_version/src/version.h index 7e2f9192..eedd6caf 100644 --- a/cpp_version/src/version.h +++ b/cpp_version/src/version.h @@ -1,3 +1,3 @@ #ifndef RANGER_VERSION -#define RANGER_VERSION "0.17.1" +#define RANGER_VERSION "0.17.2" #endif diff --git a/src/Makevars b/src/Makevars index a77f2396..016e9d51 100644 --- a/src/Makevars +++ b/src/Makevars @@ -1,2 +1,3 @@ PKG_CPPFLAGS = -DR_BUILD - +CXX_STD = CXX20 +PKG_CXXFLAGS = -std=c++20 diff --git a/src/Makevars.win b/src/Makevars.win index a6af4dd1..6532fc1c 100644 --- a/src/Makevars.win +++ b/src/Makevars.win @@ -1,2 +1,3 @@ PKG_CPPFLAGS = -DR_BUILD -DWIN_R_BUILD - +CXX_STD = CXX20 +PKG_CXXFLAGS = -std=c++20 diff --git a/src/utility.h b/src/utility.h index 7d9a57cd..eb1aa7f4 100644 --- a/src/utility.h +++ b/src/utility.h @@ -12,6 +12,10 @@ #ifndef UTILITY_H_ #define UTILITY_H_ +#ifdef R_BUILD +#include +#endif + #include #include #include @@ -25,10 +29,6 @@ #include #include -#ifdef R_BUILD -#include -#endif - #include "globals.h" #include "Data.h"