From a825a328d1ee60b3ee988c9456923d529cf76e03 Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Fri, 24 Jul 2020 15:00:37 +0200 Subject: [PATCH] explicit conversion --- inst/include/cpp11/as.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/include/cpp11/as.hpp b/inst/include/cpp11/as.hpp index 74b56434..a797b916 100644 --- a/inst/include/cpp11/as.hpp +++ b/inst/include/cpp11/as.hpp @@ -18,7 +18,7 @@ using is_constructible_from_sexp = template is_constructible_from_sexp as_cpp(SEXP from) { - return from; + return T(from); } template