Topic: Editorial fix: capitalization in 14.5/5
Author: AlbertoBarbati@libero.it (Alberto Ganesh Barbati)
Date: Mon, 21 May 2007 00:10:25 GMT Raw View
Hi,
in the latest draft (paper N2284), the example in paragraph 14.5/5 contai=
ns:
template<class ... Args> void g(Args ... args)
{
f(const_cast<const Args*>(&Args)...); // OK: =E2=80=9CArgs=E2=80=9D and=
=E2=80=9Cargs=E2=80=9D are
expanded
<snip>
}
The capitalization of the second "Args" in the function body is
incorrect. The offending line should read:
f(const_cast<const Args*>(&args)...); // OK: =E2=80=9CArgs=E2=80=9D and=
=E2=80=9Cargs=E2=80=9D are
expanded
HTH,
Ganesh
---
[ 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, 21 May 2007 02:05:39 GMT Raw View
Alberto Ganesh Barbati wrote:
> Hi,
>=20
> in the latest draft (paper N2284), the example in paragraph 14.5/5 cont=
ains:
>=20
> template<class ... Args> void g(Args ... args)
> {
> f(const_cast<const Args*>(&Args)...); // OK: =E2=80=9CArgs=E2=80=9D a=
nd =E2=80=9Cargs=E2=80=9D are
> expanded
> <snip>
> }
>=20
> The capitalization of the second "Args" in the function body is
> incorrect. The offending line should read:
>=20
> f(const_cast<const Args*>(&args)...); // OK: =E2=80=9CArgs=E2=80=9D a=
nd =E2=80=9Cargs=E2=80=9D are
> expanded
>=20
Noted. Please send editorial fixes to editorial@versatilecoding.com.
--=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 ]