Publishing Templated Classes


#1

I need to publish an instance of a templated class. I thought all I needed to do is:

typedef TemplatedClass ClassTemplateInstance;

but that doesnt seem to add any new symbols in the igate file. I’m not using the promiscuous flag in interrogate. Any ideas how this is done?


#2

Create a foo.N file in the same directory, where foo is the name of one of your .cpp or .h files, and add the line:

forcetype TemplatedClass

See, e.g., panda/src/net/connectionManager.N.

David


#3

Thanks again drwr. I wish there was some documentation on this stuff. =)