Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Smart Pointers organizational logic in draft C++0x

1 view
Skip to first unread message

Scott Meyers

unread,
Nov 16, 2009, 5:58:15 PM11/16/09
to
I see that in the latest draft of C++0x (N3000), unique_ptr (which
syntactically
acts like a pointer, i.e., overloads operator* and operator->) is still not
listed under "Smart Pointers," and weak_ptr (which doesn't syntactically
act
like a pointer) is. shared_ptr and weak_ptr work hand-in-glove, so it
makes
sense to have them both under "Smart Pointers," IMO, but is there a
reason why
unique_ptr isn't listed there?

Thanks,

Scott

--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std...@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]

Pete Becker

unread,
Nov 17, 2009, 12:20:25 AM11/17/09
to
Scott Meyers wrote:
>
> I see that in the latest draft of C++0x (N3000), unique_ptr (which syntactically
> acts like a pointer, i.e., overloads operator* and operator->) is still not
> listed under "Smart Pointers," and weak_ptr (which doesn't syntactically act
> like a pointer) is. shared_ptr and weak_ptr work hand-in-glove, so it makes
> sense to have them both under "Smart Pointers," IMO, but is there a reason why
> unique_ptr isn't listed there?
>

Yes. The reason is that there have been more pressing things to do,
such as removing concepts and then getting the draft back in one
piece, more or less.

It's still a draft.

--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of
"The Standard C++ Library Extensions: a Tutorial and Reference"
(www.petebecker.com/tr1book)

Scott Meyers

unread,
Nov 17, 2009, 11:27:34 AM11/17/09
to
Pete Becker wrote:
> Yes. The reason is that there have been more pressing things to do,
> such as removing concepts and then getting the draft back in one
> piece, more or less.
>
> It's still a draft.

I understand.

Thanks,

Scott

--

0 new messages