<div dir="ltr">Hi Bill<div> My inclination would be to use nullptr. It is fully supported by all the compilers we are now using. It has also been around for a long while as seen in this extract from: <a href="http://stackoverflow.com/questions/1282295/what-exactly-is-nullptr">http://stackoverflow.com/questions/1282295/what-exactly-is-nullptr</a></div><div><br></div><div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif">From <a href="http://www.devx.com/cplus/10MinuteSolution/35167/1954" rel="noreferrer" style="margin:0px;padding:0px;border:0px;color:rgb(0,89,153);text-decoration:none"><strong style="margin:0px;padding:0px;border:0px">nullptr: A Type-safe and Clear-Cut Null Pointer</strong></a>:</p><blockquote style="margin:0px 0px 10px;padding:10px;border-width:0px 0px 0px 2px;border-top-style:initial;border-right-style:initial;border-bottom-style:initial;border-left-style:solid;border-top-color:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:rgb(255,235,142);font-size:15px;quotes:none;background-color:rgb(255,248,220);color:rgb(36,39,41);font-family:arial,"helvetica neue",helvetica,sans-serif"><p style="margin:0px;padding:0px;border:0px;clear:both">The new C++09 nullptr keyword designates an rvalue constant that serves as a universal null pointer literal, replacing the buggy and weakly-typed literal 0 and the infamous NULL macro. nullptr thus puts an end to more than 30 years of embarrassment, ambiguity, and bugs. The following sections present the nullptr facility and show how it can remedy the ailments of NULL and 0.</p></blockquote><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>To: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Cc: <br>Bcc: <br>Date: Thu, 16 Mar 2017 11:55:21 -0400<br>Subject: [vtk-developers] NULL versus nullptr<br>I just reviewed a gitlab MR. The developer replaced =0 with =NULL.<br>
Since we now require c++11, should we be using nullptr?<br>
<br>
Bill<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
<br></blockquote></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div>