[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Binding template classes
- From: "Nick Tourte" <ntourte@...>
- Date: Wed, 05 Jul 2006 11:54:51 -0700
I'm attempting to write a wrapper class for a vector for lua binding, and
the tolua++ reference manual implies that you can do just that and simply,
too. The example is just a class in terms of T (which I presume is a simple
typedef), wherein the T is replaced in tolua's internals via the
TOLUA_TEMPLATE_BIND macro. Unfortunately, when I compile the generated .cpp
file, it gives me compiler errors because the class that I wrote was not a
template class (as the example is not either), and yet tolua++ has
interpreted the code in such a way as to translate the class into a template
class. Furthermore, when I tried to make the class a template class, it
wouldn't even compile into the .cpp file, presumably because tolua doesn't
recognize the template directive. Help?
Nick