Open StasJ opened 6 years ago
Templates that are defined in a header but implemented in a source file need to have their usage patterns defined otherwise the required usage patterns may not be generated and the linker will fail.
I'd suggest to put the implementation of template functions IN the header files.
The only drawback is larger binaries, but I don't think it's too bad, since we don't have a large number of template functions...
Templates that are defined in a header but implemented in a source file need to have their usage patterns defined otherwise the required usage patterns may not be generated and the linker will fail.