Skip to content

Commit 2c57b98

Browse files
author
Kirill Müller
committed
Revert "operator SEXP() is forwarded to get()"
This reverts commit 324e75c.
1 parent 563d968 commit 2c57b98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inst/include/Rcpp/Nullable.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ namespace Rcpp {
7777
* @throw 'not initialized' if object has not been set
7878
*/
7979
inline operator SEXP() const {
80-
return get();
80+
checkIfSet();
81+
return m_sexp;
8182
}
8283

8384
/**

0 commit comments

Comments
 (0)