|
Boost Users : |
Subject: Re: [Boost-users] boost::none for boost::shared_ptr
From: Nevin Liber (nevin_at_[hidden])
Date: 2014-01-30 12:25:24
On 30 January 2014 10:41, Chris Stankevitz <chrisstankevitz_at_[hidden]>wrote:
> On Thu, Jan 30, 2014 at 8:18 AM, Nevin Liber <nevin_at_[hidden]>
> wrote:
> > you really don't want to use boost::nullptr,
> > given that nullptr is a keyword in C++11.
>
> boost::none might be a candidate for this.
>
Make sure it doesn't interfere with optional< shared_ptr<T> >. The
std::optional proposal chose not to use nullptr for good reason. That
proposal is at <
http://open-std.org/JTC1/SC22/WG21/docs/papers/2013/n3793.html>.
IMO, it isn't worth this C++03-only change to shared_ptr just to
occasionally save some typing.
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net