C++ inline member function in .cpp file
Quoting from C++ FAQ: Note: It’s imperative that the function’s definition (the part between the {…}) be placed in a header file, unless the function is used only in a single .cpp file. In particular, if you put the inline function’s definition into a .cpp file and you call it from some other .cpp file, … Read more