@@ -395,11 +395,12 @@ namespace Rcpp {
395395
396396 class CppClass : public S4 {
397397 public:
398+ typedef XPtr<class_Base> XP_Class ;
398399 typedef Rcpp::XPtr<Rcpp::Module> XP ;
399400 CppClass ( SEXP x) : S4 (x){};
400401 CppClass ( const CppClass& other) : S4 (other.get__()){}
401402
402- CppClass ( Module* p, class_Base* clazz , std::string& ) S4 (" C++Class" ) {
403+ CppClass ( Module* p, class_Base* cl , std::string& buffer ) : S4 (" C++Class" ) {
403404 XP_Class clxp ( cl, false , R_NilValue, R_NilValue ) ;
404405 slot ( " module" ) = XP ( p, false ) ;
405406 slot ( " pointer" ) = clxp ;
@@ -427,13 +428,13 @@ namespace Rcpp {
427428 class CppObject : public S4 {
428429 public:
429430 typedef Rcpp::XPtr<Rcpp::Module> XP ;
430- CppObject ( Module* p, class_Base*, SEXP xp ) : S4 (" C++Object" ) {
431+ CppObject ( Module* p, class_Base* clazz , SEXP xp ) : S4 (" C++Object" ) {
431432 slot ( " module" ) = XP ( p, false ) ;
432433 slot ( " cppclass" ) = Rcpp::XPtr<class_Base>( clazz, false ) ;
433434 slot ( " pointer" ) = xp ;
434435 }
435436 CppObject ( const CppObject& other){
436- Storage::copy ( other ) ;
437+ Storage::copy__ ( other ) ;
437438 }
438439
439440 CppObject& operator =( const CppObject& other ) {
0 commit comments