Nick Meyer is right: the compiler doesn't care about the file extension you include, so things like ".h", ".hpp" .hxx ",". Hh ",". Inl ",". Inc ", etc. e. is a simple convention to make it clear which files should contain.
The best examples are STL header files that do not have an extension.
Typically, β.inlβ files contain inline code (hence the extension β.inlβ).
These ".inl" files are needed if you have a dependency loop between the header code.
For example:
and
It is not possible to compile it, including using a forward declaration.
The solution is to break up the definition and implementation into two kinds of header files:
hpp for declaration / header definitioninl for header implementation
which breaks down into the following example:
and
and
and
// B.INL
That way you can include any ".inl" file that you need in your own source, and it will work.
Again, the suffix names of the included files are not very important, only their use.
paercebal Aug 15 '09 at 9:29 2009-08-15 09:29
source share