Boost logo

Boost :

Subject: Re: [boost] Why no non-null smart pointers?
From: Jeff Hill (johill_at_[hidden])
Date: 2014-04-29 13:48:30

I was considering this while I was at the dentist, and I can identify a flaw
with my proposal. The "NullObjectTypes < T > :: factory ()" returns a
default constructed shared_ptr by default, and if this default version is
called from any of the constructor's that detect attempts to enter the
shared pointer into a nill internal raw pointer state, then there will be
infinite recursion.

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at