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