Home › Forums › Programming › C++ question about header files › Reply To: C++ question about header files
May 18, 2007 at 8:57 am
#36914
Inactive
I may be wrong (I’ll have to check the spec), but due to occasional unexpected results* I’m pretty sure that it’ll depend on your compiler as to whether or not these methods will actually be inlined.
* http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.3%5B/quote:206e39c9dc%5D
yep your right indeed and depending on your project settings you may even have the function call being ignored. i noticed this the other day on my code, where i was invoking a setter and the member variable was been set. So in the end i had to move the defination to a .cpp file and it got invoked every time..