From fb7364e2049fa5b3b0f143997cc76d401d24d2e4 Mon Sep 17 00:00:00 2001 From: JeremyGelb Date: Tue, 29 Oct 2024 22:10:28 -0400 Subject: [PATCH] backing to c++14 --- DESCRIPTION | 2 +- src/Makevars | 4 ++-- src/Makevars.win | 2 +- src/spNetwork.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 20d43f4e..4ce8d488 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -58,4 +58,4 @@ LinkingTo: RcppArmadillo RdMacros: Rdpack Language: en-CA -SystemRequirements: C++17 +SystemRequirements: C++14 diff --git a/src/Makevars b/src/Makevars index 5a853dad..18e1f73a 100644 --- a/src/Makevars +++ b/src/Makevars @@ -1,5 +1,5 @@ ## -*- mode: makefile; -*- PKG_CPPFLAGS = -I../inst/i CXX_STD = @CXXSTD@ -CXX_STD=CXX17 -fsanitize=undefined \ No newline at end of file +CXX_STD=CXX14 +fsanitize=undefined diff --git a/src/Makevars.win b/src/Makevars.win index 94c52ee9..18e1f73a 100644 --- a/src/Makevars.win +++ b/src/Makevars.win @@ -1,5 +1,5 @@ ## -*- mode: makefile; -*- PKG_CPPFLAGS = -I../inst/i CXX_STD = @CXXSTD@ -CXX_STD=CXX17 +CXX_STD=CXX14 fsanitize=undefined diff --git a/src/spNetwork.h b/src/spNetwork.h index 5c0b6830..b2947e8e 100644 --- a/src/spNetwork.h +++ b/src/spNetwork.h @@ -14,7 +14,7 @@ using namespace Rcpp; using namespace arma; // [[Rcpp::depends(RcppProgress)]] -//[[Rcpp::plugins(cpp17)]] +//[[Rcpp::plugins(cpp14)]] typedef arma::vec (*fptr)(arma::vec, double); typedef double (*fptros)(double, double);