I am making a small library for my future projects and a lot of functions are so small i believe they have to be inlined. But the problem is that i have too many small inlined functions take too much space in headers. Is there some way to put these functions in other files without any errors? I want my header files to look clean and readable like a list of methods, not a bunch of single line definitions.
Is putting inlined function’s definition in the same file but after all declarations a standard practice? Should i do that?
Just putting definition for functions in .cpp files doesn’t work, it returns error LNK2019.
Trying to put definitions on other file and include it in header doesn’t work either because it creates circular reference.
1