[Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module
Nikhil Garg
nikhilgarg.gju at gmail.com
Wed Feb 21 07:33:40 CET 2024
Hi,
I am looking for some advice or hoping someone can point me in the right
direction for wrapping a C++ class with singleton using Rcpp. I have been
using RCPP modules for some of this work but got stuck with a C++ object
which returns a singleton.
Here is the general structure of the object
class Foo {
public:
Foo();
~Foo();
static Foo &getFoo();
Foo(Foo const&) = delete;
void operator=(Foo const&) = delete;
}
Regards,
Nikhil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20240221/b2b17a01/attachment.htm>
More information about the Rcpp-devel
mailing list