Topic: N3092: 16.9 [cpp.pragma.op] Example is Incorrect
Author: James McNellis <james@jamesmcnellis.com>
Date: Sun, 13 Jun 2010 15:50:48 CST Raw View
The example usage of the _Pragma operator is incorrect. It states:
[begin quote]
#pragma listing on "..\listing.dir"
can also be expressed as:
_Pragma ( listing on "\"..\\listing.dir\"" )
[end quote]
Per the description of the _Pragma operator, the first quote should
appear before "listing," like so:
_Pragma ( "listing on \"..\\listing.dir\"" )
This would also match the example in C99 6.10.9/2.
James McNellis
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: =3D?ISO-8859-1?Q?Daniel_Kr=3DFCgler?=3D <daniel.kruegler@googlemail.c=.om>
Date: Mon, 14 Jun 2010 14:39:07 CST Raw View
On 13 Jun., 23:50, James McNellis <ja...@jamesmcnellis.com> wrote:
> The example usage of the _Pragma operator is incorrect. It states:
>
> [begin quote]
> #pragma listing on "..\listing.dir"
> can also be expressed as:
> _Pragma ( listing on "\"..\\listing.dir\"" )
> [end quote]
>
> Per the description of the _Pragma operator, the first quote should
> appear before "listing," like so:
>
> _Pragma ( "listing on \"..\\listing.dir\"" )
>
> This would also match the example in C99 6.10.9/2.
Your observation is correct. If I understand it correctly, this
could be handled editorial, so I forwarded your observation
to the project editor Pete Becker:
editorial#at#versatile#coding#.com
(filled with dummy # characters, just remove all of them),
Greetings from Bremen,
Daniel Kr=FCgler
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use
mailto:std-c++@netlab.cs.rpi.edu<std-c%2B%2B@netlab.cs.rpi.edu>
]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]