Articles by experts are saught after the most. Therefore, here are the links to the articles written by some of my favorite authors (in no particular order).
Unit testing your template code comes up from time to time. (You test your templates, right?) Some templates are easy to test. No others. Sometimes it's not clear how to about injecting mock code into the template code that's under test. I've seen several reasons why code injection becomes challenging. Here I've outlined some examples below with roughly increasing code injection difficulty. Template accepts a type argument and an object of the same type by reference in constructor Template accepts a type argument. Makes a copy of the constructor argument or simply does not take one Template accepts a type argument and instantiates multiple interrelated templates without virtual functions Lets start with the easy ones. Template accepts a type argument and an object of the same type by reference in constructor This one appears straight-forward because the unit test simply instantiates the template under test with a mock type. Some assertion might be tested in...
Comments
I think you should add stanley lippman in that list as well-although he hasn't written for a long time.
his articles:
http://msdn.microsoft.com/en-us/magazine/cc159481.aspx
and his blog, consisting of his old articles:
http://blogs.msdn.com/slippman/
keep up the good work, you are one of the few people encouraging me to put up with c++ :P
Thanks for your encouragement! Adding Stan Lippman in the list makes perfect sense. I'm wondering why his name did not pop up in my head.
One very good reason to stay up-to-date with latest C++ is the upcoming C++09 standard (http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2565.html) which will take C++ to a whole new level of power and complexity!
- Sumant.
Thanks for your encouragement! Adding Stan Lippman in the list makes perfect sense. I'm wondering why his name did not pop up in my head.
gclub