I try to pass a user defined class reference using embind, but there are 
compiler errors:

Code:

void func(Point3d& pt)
{ ...}

.function("func", &MyClass::func, allow_raw_pointers, pure_virtual())

Error:

*non-const lvalue reference to **type 'Point3d' cannot bind to a temporary 
of type 'Point3d'*


Are there any methods to solve this problem?


Thank yu

-- 
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.

Reply via email to