Topic: Editorial issue [N2134]: Exchanged orders in weak_ptr c'tor description


Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Mon, 5 Mar 2007 12:24:56 CST
Raw View
In [util.smartptr.weak.const]-20.6.6.3.1/4 we have:

"Requires: For the second and third constructors, Y* shall
be convertible to T*."

but the previous three declarations (compatible in order
to that in the weak_ptr class template definition) clearly
show that instead the first and third must have been meant.

Proposed resolution:

In 20.6.6.3.1/4 change the precondition paragraph to

"Requires: For the first and third constructors, Y* shall
be convertible to T*."

Greetings from Bremen,

Daniel Kr   gler


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





Author: pete@versatilecoding.com (Pete Becker)
Date: Mon, 5 Mar 2007 19:38:40 GMT
Raw View
Daniel Kr=FCgler wrote:
> In [util.smartptr.weak.const]-20.6.6.3.1/4 we have:
>=20
> "Requires: For the second and third constructors, Y* shall
> be convertible to T*."
>=20
> but the previous three declarations (compatible in order
> to that in the weak_ptr class template definition) clearly
> show that instead the first and third must have been meant.
>=20
> Proposed resolution:
>=20
> In 20.6.6.3.1/4 change the precondition paragraph to
>=20
> "Requires: For the first and third constructors, Y* shall
> be convertible to T*."
>=20

Editorial. Thanks.

--=20

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

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