We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 084cf6d commit 71b336dCopy full SHA for 71b336d
inst/include/cpp4r/r_string.hpp
@@ -155,8 +155,8 @@ inline SEXP as_sexp(std::initializer_list<r_string> il) {
155
template <typename T, typename R = void>
156
using enable_if_r_string = enable_if_t<std::is_same<T, cpp4r::r_string>::value, R>;
157
158
-template <typename T>
159
-enable_if_r_string<T, SEXP> as_sexp(T from) {
+template <typename T, typename = enable_if_r_string<T>>
+SEXP as_sexp(T from) {
160
r_string str(from);
161
sexp res;
162
unwind_protect([&] {
0 commit comments