Unless I completely misunderstand:
In 'classic' C++ programs if one has a function body in a header file it is generated as inline code in a RELEASE build and so should be faster than the same code in a .cpp file which would be compiled to a separate function.
Now in .NET (managed) there is this JIT compiler. Does it make any difference to performance if a function body is in the .h file or in the .cpp file?
Start Free Trial