Why am I getting this warning in Qt Creator: ` inline function ‘bool Lion::growl ()’ used but never defined?
I double-checked my code, and have a declaration
inline bool growl ()
in Lion
(lion.h
)
and the corresponding implementation in lion.cpp
:
inline bool Lion::growl ()
What’s going on?
EDIT: My assumption has been that it is legal to define the actual inline method in the .cpp file (the inline
keyword alerts the compiler to look for the method body elsewhere), or am I mistaken?
I don't want to clutter my header files with implementation details.