<div dir="ltr">I don't think we should use cdash suppression for this one. Users will be annoyed, e.g. Slicer...<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 11:38 AM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
As a last resort to getting ride of this warning, we could write an adaptor class. Provide an adaptor to a pointer to an iterator interface but on the dereference do the static_cast for the conversion. I don't know if the same performance benefits will still occur. And I don't really want to do this either, it'll be a lot more code.<br>
<br>
Alternatively we could just add this warning to the CDash warning suppression file.<br>
<br>
We could also just compile a function, and for just that file provide the command line ignore warning option.<br>
<br>
The current code is correct, it's doing the right thing. We just don't want the warning...<br>
<br>
Brad<br>
<div class="HOEnZb"><div class="h5"><br>
On May 13, 2013, at 2:31 PM, Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
<br>
> Hello,<br>
><br>
><br>
> On May 12, 2013, at 10:45 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>> wrote:<br>
>><br>
>> Visual Studio possible loss of data warnings<br>
>> <a href="https://issues.itk.org/jira/browse/ITK-3084" target="_blank">https://issues.itk.org/jira/browse/ITK-3084</a><br>
><br>
><br>
> I have tried a couple of things to deal with this warning:<br>
><br>
> <a href="http://review.source.kitware.com/#/c/11222/" target="_blank">http://review.source.kitware.com/#/c/11222/</a><br>
><br>
> I don't have another idea beside disabling that warning for all if the in itkWin32Header.h.<br>
><br>
> Anyone have any suggestions?<br>
><br>
> Brad<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>