Refactor, test and reduce code in GeoModelWrite
Extract pure string utilities (or use pre-existing utilities) from GeoModelWrite (joinVectorStrings , getQStringFromOss, getAddressStringFromPointer) into StringUtils.h. Create or move tests. Refactor code using C++20 features.
Edited by Shaun Roe
Merge request reports
Activity
@rbianchi, this is your realm. Could you please follow up on this MR? Thanks
added 2 commits
- Resolved by Shaun Roe
added 2 commits
There seem to be a few places where C++17 is still referenced:
grep -R "CMAKE_CXX_STANDARD 17" * FullSimLight/Plugins/TracksPlugin/cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) FullSimLight/Plugins/Examples/SensitiveDetectorPlugins/SDPlugin/cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) FullSimLight/Plugins/Examples/EventGeneratorPlugins/FSLExamplePrimaryGeneratorPlugin/cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) FullSimLight/Plugins/Examples/PhysicsListPlugins/FSLTestPhysListPlugins/cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) FullSimLight/Plugins/Examples/MagneticFieldPlugins/UniformMagneticFieldPlugin/cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) FullSimLight/Plugins/HitsPlugin/cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) cmake/configure_cpp_options.cmake:set( CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used for the build" ) documentation/docs/fullsimlight/plugins/index.md:set(CMAKE_CXX_STANDARD 17)
In addition (or perhaps, this is the reason), GeoModelAtlas seems to built with C++17.
Note that this all builds fine locally on my Mac.
Edited by Shaun Roeadded 1 commit
- c1a9ebfe - Sets standard here (built as top level project?)
- Resolved by Riccardo Maria Bianchi
@rbianchi, are you OK with these changes? I'm happy to merge it
Please register or sign in to reply