News for hackers. Stuff that matters.
Re:Real cost of C++ exception vs error-code checking by johnny531 on Tuesday March 08, 2011 @10:04PM (#2303612)
Not sure what you mean with copy ctor bloat, but for your_flavor_of_smart_ptr, that's what the typedef keyword is for.

A common idiom I use is to typedef a class's preferred smart-pointer as ptr_t within the class namespace. Passing them around now looks like:

void some_function(my_class::ptr_t);

Exception safe, clear semantics, & no bloat.

There are no comments on this comment yet.