> > If for some reason you cannot make A::fun2() virtual (e.g. fun2 need to > be a template), you can just create a wrapper function in the derived > class and expose this to R with its name changed to the function being > wrapped. E.g. > > I am not sure how to overcome this problem if (for some reason) you > cannot use a virtual function, e.g. fun2 is a template function. >
Sorry, that didn't make any sense. The following was supposed to be deleted from the post > If for some reason you cannot make A::fun2() virtual (e.g. fun2 need to > be a template), you can just create a wrapper function in the derived > class and expose this to R with its name changed to the function being > wrapped. E.g. _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
