I came across a header file that includes various function prototype declarations which are inline and const:
inline bool Foo1() const;
inline bool Foo2() const;
inline bool Foo3() const;
...
I understand that the inline keyword allows for the compiler to (potentially) expand the function when it is called, but why not include the body of the function?
It'd make more sense to me if the definition was included in the header file:
inline bool Foo1() const { return m_Foo1; };
inline bool Foo2() const { return m_Foo2; };
inline bool Foo3() const { return m_Foo3; };
...
What is the point of using inline on the prototype?