[ITK-users] Should we use two braces with the offset?

med aweng medswengineer at gmail.com
Tue Jul 22 08:04:48 EDT 2014


Thanks a lot Bradely...


On Tue, Jul 22, 2014 at 1:51 PM, Bradley Lowekamp <blowekamp at mail.nih.gov>
wrote:

> How this helps:
>
> http://en.cppreference.com/w/cpp/language/aggregate_initialization
>
>
> On Jul 22, 2014, at 6:26 AM, med aweng <medswengineer at gmail.com> wrote:
>
> Hi,
>
> As you can see in the following statement:
>
>     InputImageType::OffsetType offset1 = {{0, -1}};
>
> From here:https://github.com/ComplexSystemsModeling/DCMTK-ITK/blob/master/Modules/Numerics/Statistics/test/itkScalarImageToRunLengthMatrixFilterTest.cxx
>
> Two braces have been used with the "offset". Should this be done? Why is that?
>
> Thanks.
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140722/eac94478/attachment.html>


More information about the Insight-users mailing list