[Rcpp-devel] Rcpp constructor validator help

Anon User rcppdevel at hong-ni.com
Sun Nov 6 17:36:41 CET 2016


Hi,

	Could someone point me to documentation or provide an example on how to use constructor validator to handle the following case:


	class Foo;

	struct Bar
	{ 
		Bar(const Foo&, int);
		Bar(int,  int);
		…
	};

	I would like to find a way for the R user to build a Bar object using either one of the constructors. 

	Your help is much appreciated!

Hong


More information about the Rcpp-devel mailing list