Comments
Patch
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/porting_to.html,v
retrieving revision 1.6
@@ -215,19 +215,19 @@ valid ISO C++03 code
</p>
<pre>
-const char *p = “foobar”__TIME__;
+const char *p = "foobar"__TIME__;
</pre>
<p>In C++03, the <code>__TIME__</code> macro expands to some string
literal and is concatenated with the other one. In
-C++11 <code>__TIME__</code> isn't expanded, instead operator
-“” <code>__TIME__</code> is being looked up, resulting in the
+C++11 <code>__TIME__</code> isn't expanded, instead <code>operator
+"" __TIME__</code> is being looked up, resulting in the
following diagnostic:
</p>
<pre>
error: unable to find string literal operator
- ‘operator“” __TIME__’
+ ‘operator"" __TIME__’
</pre>
<p>
Hi, I noticed that the porting example for c++11 user-defined literals is using "smart" double quotes, when code should have straight quotes. There's also an operator term that should be in the nearby <code> block. Thanks, Josh 2012-01-26 Josh Stone <jistone@redhat.com> * htdocs/gcc-4.7/porting_to.html: Use straight quotes in code examples, and expand a <code> wrapper around the operator term.