Personally, I don't bother with them any more. As you said, compilers are clever enough nowadays, so... I leave it to them to decide what is best. Also, inlining can, in some cases, make things worse, so...
Personally, I don't bother with them any more. As you said, compilers are clever enough nowadays, so... I leave it to them to decide what is best. Also, inlining can, in some cases, make things worse, so...
But, if you see at QT code, you can see inline functions....
Yes and so what?It's their call and I gave you mine. Now, one might argue that their call is probably better than mine, and that is completely fine with me. Still, at the end of the day, it's your decision. So, just gather as much information as possible and decide for yourself, e.g.
tonnot (24th February 2011)
You might want to read this:
http://www.parashift.com/c++-faq-lit...functions.html
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Thank you very much
Bookmarks