Skip to content

Commit bf40e56

Browse files
committed
add support for 'cpp2b' as well
1 parent bb7cebb commit bf40e56

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* DESCRIPTION (Version, Date): Roll minor version
44
* inst/include/Rcpp/config.h: Idem
55

6-
* R/Attributes.R: Support C++20 and C++23 via plugins
6+
* R/Attributes.R: Support C++20, C++23 and C++2b (for experimental /
7+
incomplete support) via new plugins
78

89
2022-07-27 Dirk Eddelbuettel <[email protected]>
910

R/Attributes.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,11 @@ compileAttributes <- function(pkgdir = ".", verbose = getOption("verbose")) {
573573
list(env = list(PKG_CXXFLAGS ="-std=c++2a"))
574574
}
575575

576+
## built-in C++2b plugin for compilers without C++23 support
577+
.plugins[["cpp2b"]] <- function() {
578+
list(env = list(PKG_CXXFLAGS ="-std=c++2b"))
579+
}
580+
576581
## built-in OpenMP plugin
577582
.plugins[["openmp"]] <- function() {
578583
list(env = list(PKG_CXXFLAGS="-fopenmp",

inst/NEWS.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
}
1616
\item Changes in Rcpp Attributes:
1717
\itemize{
18-
\item The C++20 and C+=23 standards are now supported via plugins
19-
just like the other C++ standards (Dirk in \ghpr{1228})
18+
\item The C++20, C++2b (experimental) and C++23 standards now have
19+
plugin support like the other C++ standards (Dirk in \ghpr{1228})
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)