Skip to content

Commit 4e2a6b4

Browse files
committed
remove RCPP_USE_STD_FUNCTION again, instead use the autodetected RCPP_USING_CXX11
1 parent 381d913 commit 4e2a6b4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

inst/include/Rcpp/InternalFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include <Rcpp/grow.h>
2828

29-
#ifdef RCPP_USE_STD_FUNCTION
29+
#ifdef RCPP_USING_CXX11
3030
#include <Rcpp/InternalFunctionWithStdFunction.h>
3131
#endif
3232

@@ -37,7 +37,7 @@ namespace Rcpp{
3737

3838
RCPP_GENERATE_CTOR_ASSIGN(InternalFunction_Impl)
3939

40-
#ifdef RCPP_USE_STD_FUNCTION
40+
#ifdef RCPP_USING_CXX11
4141
template <typename RESULT_TYPE, typename... Args>
4242
InternalFunction_Impl(const std::function<RESULT_TYPE(Args...)> &fun) {
4343
set(

inst/unitTests/cpp/InternalFunctionCPP11.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
2121

2222

23-
#define RCPP_USE_STD_FUNCTION
2423
#include <Rcpp.h>
2524

2625

0 commit comments

Comments
 (0)