[ITK] ITK_NULLPTR and ITK_OVERRIDE on VS2012+
Мар'ян Климов
nekto1989 at gmail.com
Tue Dec 23 14:31:28 EST 2014
Hi,
Even latest VS2013 has __cplusplus defined to 199711L. I just changed
second compiler from mingw to mingw-w64 and GCC 4.9.2 found some problems
in code because of ITK_OVERRIDE that was ignored by VS and mingw32.
Marian
2014-12-23 18:36 GMT+02:00 Bradley Lowekamp <blowekamp at mail.nih.gov>:
> Hello,
>
> Yes you could be done with CMake try compiles an what not.
>
> Checking to see if the C++ version is C++11 seems reasonable. Is this
> causing any problems?
>
> Brad
>
> On Dec 23, 2014, at 5:36 AM, Мар'ян Климов <nekto1989 at gmail.com> wrote:
>
> > Hi,
> >
> > I've found out that ITK defines ITK_NULLPTR to NULL instead of nullptr
> and ITK_OVERRIDE to nothing. This happens in itkMacro.h. Can't this be done
> in some other way like check for HAS_OVERRIDE, HAS_NULLPTR instead of
> checking for __cplusplus?
> >
> > Best regards,
> > Marian
> > _______________________________________________
> > Community mailing list
> > Community at itk.org
> > http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20141223/3cf0de77/attachment.html>
More information about the Community
mailing list