Ok, so I'm really after knowledge rather than a quick easy solution here. I am part of a team that is currently working on the development of a 'kind of' physics engine but I have hit a small wall since adapting the functionality of a class which was previously working perfectly. Basically, I have multiple classes that are responsible for the reconstruction of particular objects in different views; I wished to template one particular 'builder' class in order to reuse most of the current code but to build a different (but similar) objects.
Problem:
Since rebuilding this class I have been unable to get it to compile :(
I use a static function (defined elsewhere) call used at the bottom of the source file to register information about each builder class. I can't figure out how I'm supposed to call this function within the template class though.....(NB: This call is not made within function scope of any of the template class functions)
If I compile without template parameters then obviously I get an error, but it's not a function that is actually part of the template class! Just called within it. If I add template parameters then I get the error "expected constructor, destructor or type conversion before token'.
Any help would be greatly appreciated :)
p.s The code is of a sensitive nature so I can't really post it here. I am more than willing to demonstrate my problems with examples and perhaps some small code snippets however.