I’ve always wished I could find an elegant way to separate template implementation code. Here’s my latest strategy…

h = standard interface
hpp = template implementation
cpp = standard implementation

Always include the hpp at the end of the h.
Always include the h at the beginning of the cpp.
Always use inline keyword on template function implementations.

Not much to see here, move along…

Leave a Reply