pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
901 stars 120 forks source link

More than one class ctor #64

Closed shtirliz-dev closed 6 years ago

shtirliz-dev commented 6 years ago

Maybe that's not an issue, but how to deal with multiple class constructors? Thank you.

pmed commented 6 years ago

Currently binding of overloaded functions/constructors is not supported. As a workaround you can use a generic constructor with single v8::FunctionCallbackInfo argument. See also #41