Skip to content

Commit a4831a0

Browse files
committed
upgraded to C++20
1 parent 953d6e7 commit a4831a0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Makevars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## -*- mode: makefile; -*-
22

3-
PKG_CXXFLAGS = -I../inst/include --std=c++17
3+
PKG_CXXFLAGS = -I../inst/include --std=c++20 -D_LIBCPP_DISABLE_AVAILABILITY
44
# CXX_STD = CXX14

src/Makevars.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## -*- mode: makefile; -*-
22

3-
PKG_CXXFLAGS = -I../inst/include --std=c++17
3+
PKG_CXXFLAGS = -I../inst/include --std=c++20
44
# CXX_STD = CXX14

src/xtensor_r_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <Rcpp.h>
1010

11-
// [[Rcpp::plugins(cpp17)]]
11+
// [[Rcpp::plugins(cpp20)]]
1212

1313
// [[Rcpp::export]]
1414
xt::rtensor<double, 2> xtensor_r_example(xt::rtensor<int, 1> tens)

0 commit comments

Comments
 (0)