Skip to content

RCPP_CTOR_ASSIGN compiler warning in Rcpp/Module.h #410

@jpritikin

Description

@jpritikin

I might be able to figure out the cause of this warning, but you could probably figure it out much faster.

/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/Module.h: In copy constructor ‘Rcpp::CppClass::CppClass(const Rcpp::CppClass&)’:
/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/Module.h:404:23: warning: base class ‘class Rcpp::S4_Impl<Rcpp::PreserveStorage>’ should be explicitly initialized in the copy constructor [-Wextra]
      RCPP_CTOR_ASSIGN(CppClass)
                       ^
/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/macros/interface.h:27:1: note: in definition of macro ‘RCPP_CTOR_ASSIGN’
 __CLASS__( const __CLASS__& other ){                                           \
 ^
/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/Module.h: In copy constructor ‘Rcpp::CppObject::CppObject(const Rcpp::CppObject&)’:
/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/Module.h:416:26: warning: base class ‘class Rcpp::S4_Impl<Rcpp::PreserveStorage>’ should be explicitly initialized in the copy constructor [-Wextra]
         RCPP_CTOR_ASSIGN(CppObject)
                          ^
/opt/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/macros/interface.h:27:1: note: in definition of macro ‘RCPP_CTOR_ASSIGN’
 __CLASS__( const __CLASS__& other ){                                           \
 ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions