A
Arne Petersen
Hy,
I've got a problem with member function templates compiled into
libraries.
I'm trying to get a library collection (coded for GNU gcc, where its
compiled completly) being compiled on Visual Studio .NET. The problem is
that for gcc the template functions (members of a class) are explicitly
instantiated in a cpp file that includes the classes .h and .cpp file.
The VS compiler does not correctly bring together the function template
declaration and its instanciation.
An other problem is that in VS it's not possible to declare just the
generic function template in the header and define the specialization in
the .cpp file. At least a declaration of the specialized template has to
be written in the header.
Now how can I get GNU version libraries be compiled under VS?
Help would be great, Arne Petersen
I've got a problem with member function templates compiled into
libraries.
I'm trying to get a library collection (coded for GNU gcc, where its
compiled completly) being compiled on Visual Studio .NET. The problem is
that for gcc the template functions (members of a class) are explicitly
instantiated in a cpp file that includes the classes .h and .cpp file.
The VS compiler does not correctly bring together the function template
declaration and its instanciation.
An other problem is that in VS it's not possible to declare just the
generic function template in the header and define the specialization in
the .cpp file. At least a declaration of the specialized template has to
be written in the header.
Now how can I get GNU version libraries be compiled under VS?
Help would be great, Arne Petersen