Showing content from https://raw.githubusercontent.com/charto/nbind-examples/master/2-classes.cc below:
#include class ClassExample { public: ClassExample() { std::cout << "No arguments\n"; } ClassExample(int a, int b) { std::cout << "Ints: " << a << " " << b << "\n"; } ClassExample(const char *msg) { std::cout << "String: " << msg << "\n"; } }; #include "nbind/nbind.h" NBIND_CLASS(ClassExample) { construct<>(); construct (); construct (); }
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4