This is once again something with which the RCPP_EXPOSED_CLASS macro can help
with. Try adding
RCPP_EXPOSED_CLASS(A)
before you declare class A and simply use this signature for the method.
void DoSomethingWithInstanceOfA(const A& )
Also, you can have both of these classes in the same modul
Gregory Jefferis
On 10 Sep 2014, at 10:39, Romain Francois wrote:
> RCPP_EXPOSED_CLASS(A)
>
> before you declare class A and simply use this signature for the method.
>
> void DoSomethingWithInstanceOfA(const A& )
I used this approach happily in the nabor package (on github) but the only
Le 10 sept. 2014 à 14:22, Gregory Jefferis a écrit
:
>
>
> Gregory Jefferis
>
> On 10 Sep 2014, at 10:39, Romain Francois wrote:
>
>> RCPP_EXPOSED_CLASS(A)
>>
>> before you declare class A and simply use this signature for the method.
>>
>> void DoSomethingWithInstanceOfA(const A& )
>