9 Mar
2014
9 Mar
'14
10:28 p.m.
On Mar 9, 2014, at 2:24 PM, Markus Engel wrote:
I didn't know this class existed I swear :) . Anyway, you're totally right, this unconditional unblocking in my example would definitely have led to problems. Is there any specific reason why you store a pointer instead of a reference to the connection? Just curious...
Yes. There were some common use cases, such as with boost::make_shared, where references would not compile. Otherwise you are correct, references would be preferred here.