Why isn't this template working?
Phlox Icon <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
in the .h file:template< typename T > T Foo( int enumType, int enumIndex );
in the cpp file:
template< typename T >
T Foo( int x, int y)
{
...
return a type of enum
}
Binding:
luabind::def( "Foo", (MySpecificEnumType(*) (int,
int)) Foo < MySpecificEnumType > )
error:
unresolved external symbol "enum MySpecificEnumType __cdecl
Foo<enum MySpecificEnumType>(int,int)"
Thanks
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user