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 5f974e0 commit 92a0eecCopy full SHA for 92a0eec
inst/include/Rcpp/api/meat/SlotProxy.h
@@ -81,7 +81,7 @@ namespace Rcpp{
81
82
template <typename CLASS>
83
bool SlotProxyPolicy<CLASS>::hasSlot(const std::string& name) const {
84
- SEXP x = static_cast<CLASS&>(*this).get__() ;
+ SEXP x = static_cast<const CLASS&>(*this).get__() ;
85
if( !Rf_isS4(x) ) throw not_s4() ;
86
return R_has_slot( x, Rf_mkString(name.c_str()) ) ;
87
}
0 commit comments