public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Tweak /gcc-5/porting_to.html wording about converting nullptr to bool
@ 2015-03-10 18:05 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2015-03-10 18:05 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 121 bytes --]

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

Committed to CVS.


[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 628 bytes --]

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>
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-10 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10 18:05 [wwwdocs] Tweak /gcc-5/porting_to.html wording about converting nullptr to bool Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).