[Rtk-users] C++11
Simon Rit
simon.rit at creatis.insa-lyon.fr
Mon Oct 27 08:43:11 EDT 2014
Hi Padraig,
Indeed, we don't use C++11. I don't know what is the consequence of
such a change but don't hesitate to suggest modifications if you have
to make some to serve your purpose. In ITK, VCL_INCLUDE_CXX_0X is only
for one module, I don't think it impacts the rest of the platform more
than it does for RTK.
Simon
On Mon, Oct 27, 2014 at 1:23 PM, Padraig Looney
<padraig.looney at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/rtk-users
>
More information about the Rtk-users
mailing list