Patrik Servin wrote:
Does anyone know of a tool that will convert templates into classes?
Background: Suppose you have a bunch of generic classes (templates) that
actually doesn't need to be generic. They are hard to understand and debug.
Now you want to rewrite them into plain non-generic classes but there is so
many of them that you want to automate this rewriting. Any idea?
I used Google
http://www.google.com/
to search for
+"genclass" +"C++" +"Oswego"
and I found lots of stuff including
http://www.ibiblio.org/pub/historic-...r/bin/genclass
We used the genclass script to create instances
from templates in "prototype" files
before Bjarne incorporated templates into the language.
Of course, this isn't exactly what you want to do.
I think that what you want to do is "wrong headed"
and I don't believe that any tools exist to do it.