The whole point of inline is to allow you to place the function definition in the header. If you are trying to use inline to tell the compiler to inline the function, don't worry about it; modern compilers will inline functions that they deem appropriate, regardless of whether or not you give the inline keyword.
An inline function must be defined in every translation unit in which it is odr-used. If you want the function to be inline, you need to define it in the header. If you want to declare it in the header and define it in the .cpp file, then don't mark it inline.
inlineis to allow you to place the function definition in the header. If you are trying to useinlineto tell the compiler to inline the function, don't worry about it; modern compilers will inline functions that they deem appropriate, regardless of whether or not you give theinlinekeyword.