"Koen" <no@ssppaamm.com> wrote in message news:<c8**********@gaudi2.UGent.be>...
Koen wrote: Hi,
....
Come to think of it: since template implementations are always inlined
(correct me if I'm wrong), maybe it makes sense to consider template
implementations as inline code tout court (so also use .inl instead of
.tpl)? Or is there a reason why I should still consider them as separate
things (and keep the .inl and .tpl distinction)?
I seem to remember that MS uses .inl extensions for some type of file.
So in an effort to keep it more C++ish, I try to use the common .hpp,
..hxx and .cpp extensions.
hpp is normally a C++ header file
hxx is usually has inlinable (or template impl) code
cpp is generally the implementation
If you really need flexibility, use a macro in place of the keyword
'inline' and at compilation time, (via macros again) you can include
the .hxx content in either the header or implementation file, inlined
or not per your INLINE macro.
At any rate, these decisions are arbitrary - but easy to remember and
great at keeping Emacs a happy camper.
Hth,
-Luther