<div dir="ltr">Also, as Robert pointed out earlier, there is an obscure, known issue concerning NULL conversion and pair constructors in MSVC 2010 that contributed to this debacle. It is my understanding that NULL (even defined as (int)0) should convert cleanly to a pointer type, so long as the pointer type is deducible from template arguments or other contextual information.<div><br></div><div>In any case, the code is happily functioning on all of our support platforms now, and I've spent far, far too much time writing, rewriting, rewriting again, documenting, and redocumenting this single line of code for my taste. Hopefully the pending merge request will quell any outstanding concerns.</div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 10:20 AM, Robert Maynard <span dir="ltr"><<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually the definition of NULL is left up to each compiler. The C++11<br>
draft states "The macro NULL < snip> is an implementation-defined C++<br>
null pointer constant"<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Apr 30, 2015 at 10:17 AM, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:<br>
> On 04/30/2015 10:08 AM, David Cole via vtk-developers wrote:<br>
>> That in some implementations NULL is defined simply as 0. Stupidly,<br>
>> but still a fact.<br>
>><br>
>> Even in VS 2013, with __cplusplus defined, NULL is simply #define'd to 0.<br>
><br>
> IIRC the C++ standard *requires* that NULL be just "0".<br>
> Its conversion problems are why C++11 introduced nullptr.<br>
><br>
> -Brad<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
><br>
</div></div></blockquote></div><br></div>