Is there a list of GSOC ideas for Rcpp? I assume you all participate. As far as I can tell (correct me if I am wrong), Rcpp does not support as arguments or return types: void* enums int/double* buffers char** buffers (vector of null-terminated strings)
If these types of arguments could be handled natively, I would not have to write wrappers by hand, which is easy but time consuming for large libraries. The first thing might be to add an "enum_<enumType>" template to Rcpp a la Boost::Python. It would be nice to extend the attributed mechanism to allow wrapping given a prototype, for example: // [[Rcpp::wrap]] const char* theFunc(double n); This would not emit a prototype for theFunc, the assumption being it is defined in a header. THK -- http://www.keittlab.org/
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel