[ITK] [ITK-dev] include file header double underscore

Bill Lorensen bill.lorensen at gmail.com
Fri Feb 19 13:07:18 EST 2016


Simon,

Apparently the use of _ and __ is reserved and newer c++'s warn about
it. These changes were made back in December 2014...
http://itk.org/gitweb?p=ITK.git;a=commit;h=4d8c82c5bfdf340a4201e91d7d35694852328199

http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

What backward compatibility issues do you see?

Bill

On Fri, Feb 19, 2016 at 12:14 PM, Simon Warfield
<simon.warfield at childrens.harvard.edu> wrote:
>
> Did itk include file ifndef lines lose their double underscore at some
> point?
> Was there a reason for that ?  It has an impact on backwards compatibility.
>
> http://www.itk.org/Doxygen47/html/itkAbsImageFilter_8h_source.html
> line 18 :
> #ifndef __itkAbsImageFilter_h
>
> http://www.itk.org/Doxygen48/html/itkAbsImageFilter_8h_source.html
> line 18 :
> #ifndef itkAbsImageFilter_h
>
>
> --Simon
>
> _______________________________________________
> 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://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-developers



-- 
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
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://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-developers


More information about the Community mailing list