On quinta-feira, 12 de janeiro de 2017 17:27:45 PST Clayton Weaver wrote:
> Due to that site I'm confused. Do templates allow to maintain
> declaration/definition separation or not?
Yes, but there's a caveat:
In the header, you need to declare which instantiations will appear in the
.cpp file.
In the .cpp, you need to instantiate them.
And you cannot use any instantiation that isn't in the .cpp.
--
Thiago Macieira - thiago (AT)
macieira.info - thiago (AT)
kde.org
Software Architect - Intel Open Source Technology Center