[Insight-developers] Problems building ITK against llvm libc++ (in C++11 mode)
Sean McBride
sean at rogue-research.com
Thu Oct 17 13:47:22 EDT 2013
Hi all,
I've just tried building ITK master against llvm's libc++ (in C++11 mode):
<http://libcxx.llvm.org>
I've hit 2 errors:
1) ITK/Modules/Core/Common/src/itkProcessObject.cxx:1166:10: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool'
return (std::istringstream(idxStr) >> idx);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2) ITK/Modules/Core/Common/include/itkImageAlgorithm.h:24:12: fatal error: 'tr1/type_traits' file not found
# include <tr1/type_traits>
^
I see that there is an #if ITK_HAS_STLTR1_TR1_TYPE_TRAITS protection, but I guess the logic needs tweaking. It should probably prefer <type_traits> and fall back to <tr1/type_traits> only secondarily.
(I'm working on setting up a dashboard with this config.)
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the Insight-developers
mailing list