We did like this .function("addVec", &SrVec::operator+=)
On Monday, September 14, 2015 at 2:27:45 AM UTC-7, Dmitry Grechka wrote:
>
> Hi,
>
> I have the following c++ code which I want to expose for JS usage:
>
> class expr {
> public:
> expr operator&&(expr const & a, expr const & b) {
> ...
> }
> }
>
> As JavaScript does not support operators overloading I want to to expose
> the operator as a ".and" method of the expr object to use it like
>
> a.and(b)
>
> How can I declare embind defintion of such function?
>
> Regards,
> Dmitry.
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.