This still affects InsightToolkit 4.8.1 in Xenial Xerus 16.04. It looks
like the issue will be fixed in 4.9, for which rc3 is already out.

In 16.04, compiling with C++11 still gives:

/usr/include/ITK-4.8/vnl/vnl_numeric_traits.h:437:35: error: ‘constexpr’ needed 
for in-class initialization of static data member ‘const long double 
vnl_numeric_traits<long double>::maxval’ of non-integral type [-fpermissive]
   static const long double maxval 
VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
                                   ^

It has been fixed upstream on November 11, 2015:
http://review.source.kitware.com/#/c/20386/ and it looks like the fix is
in 4.9 RC1 according to the change log at
http://www.kitware.com/blog/home/post/1012.

To maintainers: it looks like 4.9 will be out soon (planned release was
earlier this month). Will we have 4.9.0 in Ubuntu 16.04 or do you prefer
backporting the patch at http://review.source.kitware.com/#/c/20386/ to
ITK 4.8.1?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1270148

Title:
  Building in C++11 mode causes compilation errors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/insighttoolkit4/+bug/1270148/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to