I always try to keep the implementation outside of the headers, so for templates and inline functions, I usually do something like this
// File.h inline bool foo()
// File.hpp inline bool foo() { return 1; }
My question is: what does the C ++ specification have to say about repeating the inline keyword for the actual implementation of the function? (as shown in this example)
I really don't want to do this because it becomes messy with lots and lots of functions, and although my compiler doesn't complain, I'm wondering if the compiler is not compiling an inline hint.
Somebody knows?
Tomas source share