You can bind template instantiations with embind:
class_<A>("A)
.function("runB", &A::run<B>)
.function("runC", &A::run<C>)
;
You can't bind a template directly, because otherwise JavaScript wouldn't
have a way to talk concretely about the type or function.
On Wed, Nov 12, 2014 at 2:11 AM, awt <[email protected]> wrote:
> Hi,
>
> Is it possible to export template functions using either Embind or WebIDL
> or any other method?
>
> class A
> {
> public:
> template<class T>
> void run() {}
> };
>
> --
> 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.
>
--
Chad Austin
Technical Director, IMVU
http://engineering.imvu.com <http://www.imvu.com/members/Chad/>
http://chadaustin.me
--
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.