[Rcpp-devel] Extending <Rcpp/module/Module_generated_class_constructor.h>

Tama Ma pingnang at phys.ethz.ch
Fri Dec 3 20:55:37 CET 2010


Dear Rcpp developers,

	I want to export a class with a constructor with 7 argments. However, in <Rcpp/module/Module_generated_class_constructor.h>, we have only support up to 6 arguments, eg.

    template <
        typename U0, 
        typename U1, 
        typename U2, 
        typename U3, 
        typename U4, 
        typename U5
    >   
    self& constructor( const char* docstring = 0, ValidConstructor valid = &yes_arity<6> ){
        AddConstructor( new Constructor_6<Class,U0,U1,U2,U3,U4,U5> , valid, docstring ) ; 
        return *this ;   
    }   


	Can this be extended? And in what way I can help with it?

	Thank you very much.

Best regards,
Tama Ma


ETH Zurich
Tama Ma
Institüt für Theoretische Physik
HIT K 31.3
Wolfgang-Pauli-Strasse 27
ETH Hönggerberg
8093 Zürich
Switzerland

pingnang at itp.phys.ethz.ch
www.phys.ethz.ch/~pingnang

+41 44 633 76 55  (Office Phone)
+41 44 633 11 15  (Office Fax)



More information about the Rcpp-devel mailing list