Skip to content

Commit 92a0eec

Browse files
const ness again
1 parent 5f974e0 commit 92a0eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/api/meat/SlotProxy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ namespace Rcpp{
8181

8282
template <typename CLASS>
8383
bool SlotProxyPolicy<CLASS>::hasSlot(const std::string& name) const {
84-
SEXP x = static_cast<CLASS&>(*this).get__() ;
84+
SEXP x = static_cast<const CLASS&>(*this).get__() ;
8585
if( !Rf_isS4(x) ) throw not_s4() ;
8686
return R_has_slot( x, Rf_mkString(name.c_str()) ) ;
8787
}

0 commit comments

Comments
 (0)