<div dir="ltr">Brad,<div><br></div><div style>I agree. I looked at a bunch of web discussions regarding the pros and cons. Your comment seems to be the consensus.</div><div style><br></div><div style>Bill</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 10:04 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">
Bill,<br>
<br>
I think that copy is required for generic programming like much of ITK.<br>
<br>
But when you have a known type, I don't see any reason to look down on memcpy.<br>
<br>
Brad<br>
<div><div class="h5"><br>
On Apr 9, 2013, at 5:02 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
<br>
> Kent says:<br>
> "There are (before this patch) 88 calls to memcpy<br>
> in the ITK source code."<br>
><br>
> In VTK, there are 2076 uses of memcpy in 452 classes.. Perhaps the older sibling can learn from the younger.<br>
><br>
> There are 34 uses of std::copy in vtk.<br>
><br>
> Bill<br>
><br>
> --<br>
> Unpaid intern in BillsBasement at noware dot com<br>
</div></div>> _______________________________________________<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>