Re: [cmake-developers] Use of C++11 in CMake's own source code
That was my merge request. Which didn't get accepted anyway. I'm currently starting a new clone to address all the points the CI had. But after reading this I'll also remove the C++11 stuff. Minze On Tue, Sep 20, 2016 at 5:30 PM, Brad Kingwrote: > On 09/20/2016 11:12 AM, Craig Scott wrote: > > some C++11 stuff in at least one recent merge request > > We allow C++14 in code guarded by HAVE_SERVER_MODE because that is > a new/optional feature that doesn't have to work on all platforms yet. > > Everything not guarded by HAVE_SERVER_MODE needs to be able to compile > in all language levels C++98 and above. We have CM_NULLPTR and similar > macros to enable C++11 safety checks when building at that level or > above, but they fall back to C++98-compatible code too. > > -Brad > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake-developers > -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
Re: [cmake-developers] Use of C++11 in CMake's own source code
On 09/20/2016 11:12 AM, Craig Scott wrote: > some C++11 stuff in at least one recent merge request We allow C++14 in code guarded by HAVE_SERVER_MODE because that is a new/optional feature that doesn't have to work on all platforms yet. Everything not guarded by HAVE_SERVER_MODE needs to be able to compile in all language levels C++98 and above. We have CM_NULLPTR and similar macros to enable C++11 safety checks when building at that level or above, but they fall back to C++98-compatible code too. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
[cmake-developers] Use of C++11 in CMake's own source code
Tried searching the archives for this but too many hits for the general CMake feature supporting C++11. What's the current policy for use of C++11 in CMake's own source code? A cursory trip through some sources recently suggested no C++11 features are being used, which I can understand if there is the requirement to support building CMake on systems with compilers which don't have C++11 support. I do, however, see some C++11 stuff in at least one recent merge request, so I'm wondering what the current policy on this is? I don't want to start a long philosophical discussion, I just want to clarify the constraints on merge requests, etc. -- Craig Scott Melbourne, Australia https://crascit.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers