Skip to content

Commit fbf104f

Browse files
committed
const support for Nullable
cargo-culted from many other implementations of `operator SEXP()`
1 parent 73c59b7 commit fbf104f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/include/Rcpp/Nullable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace Rcpp {
7676
*
7777
* @throw 'not initialized' if object has not been set
7878
*/
79-
inline operator SEXP() {
79+
inline operator SEXP() const {
8080
checkIfSet();
8181
return m_sexp;
8282
}
@@ -86,7 +86,7 @@ namespace Rcpp {
8686
*
8787
* @throw 'not initialized' if object has not been set
8888
*/
89-
inline SEXP get() {
89+
inline SEXP get() const {
9090
checkIfSet();
9191
return m_sexp;
9292
}

0 commit comments

Comments
 (0)