This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs] Tweak /gcc-5/porting_to.html wording about converting nullptr to bool


Since nullptr always converts to false it doesn't make much sense to
recommend using 'true' instead.

Committed to CVS.

Index: porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/porting_to.html,v
retrieving revision 1.6
diff -u -r1.6 porting_to.html
--- porting_to.html	10 Mar 2015 17:43:37 -0000	1.6
+++ porting_to.html	10 Mar 2015 17:56:46 -0000
@@ -382,8 +382,8 @@
   bool b(nullptr);
 </code></pre>
 
-It is recommended to use <code>true</code>, resp. <code>false</code> keywords
-in such cases.
+It is recommended to use the <code>false</code> keyword instead of
+converting <code>nullptr</code> to <code>bool</code>.
 
 <h3>Return by converting move constructor</h3>
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]