<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ok. I misunderstood.  Yes, for the new code it makes more sense to use nullptr<div class=""><br class=""></div><div class="">—--</div><div class="">Alex</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 30, 2014, at 3:00 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Hi Alex</p><p dir="ltr" class="">I'm not saying 0 is forbidden.</p><p dir="ltr" class="">My suggestion is: any new code should use nullptr to represent null pointer, instead of 0 or NULL.</p><p dir="ltr" class="">Yours, Junxiao</p>
<div class="gmail_quote">On Oct 30, 2014 2:57 PM, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu" class="">alexander.afanasyev@ucla.edu</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Given the amount of code we have, I would suggest we keep both notations as allowed.</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 30, 2014, at 2:49 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank" class="">shijunxiao@email.arizona.edu</a>> wrote:</div><br class=""><div class=""><p class="">Dear folks</p><p class="">rule 3.20 states: 0 should be used instead of NULL.</p><p class="">In C++ 11, a null pointer is typically written as std::nullptr.<br class="">
Usage of std::nullptr is already permitted, because it doesn't violate this rule.</p><p class="">Should we amend this rule as follows?<br class="">
"std::nullptr" should be used to represent null pointer.</p><p class="">Yours, Junxiao</p>
_______________________________________________<br class="">Nfd-dev mailing list<br class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank" class="">Nfd-dev@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>