Monthly Archives: February 2014

Pointing the Way Redux, Part 1: Value Semantics

[Update: See below about taking sink arguments by value.] So a while back I posted about some issues that I found with my co-workers code while doig a review. At the end of the post I said that I’m going to go into excruciating detail about when I think its approproate to use each of […]

Limited Publicity

I’ve got a class that needs to derive from enable_shared_from_this so that it can get a hold of shared_ptrs to itself. This class has private constructors and a static create method that returns a shared_ptr – doing otherwise is just suicidal: someone will create an object on the stack and then the object will blow […]