[Rtk-users] C++11

Padraig Looney padraig.looney at gmail.com
Mon Oct 27 08:23:36 EDT 2014


Dear all,

Is it possible to build RTK using C++11. I have built ITK using the flag



*VCL_INCLUDE_CXX_0X:BOOL=ON*

I tried


SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

in the CMakeLists.txt for RTK but I can't build.


I am just looking to use lambda expressions like




*std::for_each(m_GantryAngles.begin(), m_GantryAngles.end(), [](double
&d){ return d++;} );*

in my code and I cannot build. I am assuming the issue is that RTK is
not built using C++11

Best wishes

Pádraig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20141027/43e1b5bd/attachment-0008.html>


More information about the Rtk-users mailing list