[ITK-users] Should we use two braces with the offset?
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue Jul 22 07:51:22 EDT 2014
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/5ab94d94/attachment.html>
More information about the Insight-users
mailing list