gcc12 does not compile boost 1.76.0
When trying to compile Corsika 8 master(6b6d8af2) with gcc12 on arch linux conan fails to build the boost dependency. Updating to boost 1.78.0 fixes the compiling issue, but then testSaveBoostHistogram.cpp fails to compile due to a change in boost. The log for the error is:
[ 61%] Building CXX object tests/framework/CMakeFiles/testFramework.dir/testSaveBoostHistogram.cpp.o
In file included from /home/jay/.conan/data/boost/1.78.0/_/_/package/f27dc58832576b9a0d4420949ffa1a355c99ba20/include/boost/histogram/axis.hpp:23,
from /home/jay/.conan/data/boost/1.78.0/_/_/package/f27dc58832576b9a0d4420949ffa1a355c99ba20/include/boost/histogram.hpp:28,
from /home/jay/Desktop/phd/corsika_master/corsika/corsika/framework/utility/SaveBoostHistogram.hpp:11,
from /home/jay/Desktop/phd/corsika_master/corsika/tests/framework/testSaveBoostHistogram.cpp:10:
/home/jay/.conan/data/boost/1.78.0/_/_/package/f27dc58832576b9a0d4420949ffa1a355c99ba20/include/boost/histogram/axis/regular.hpp: In instantiation of ‘class boost::histogram::axis::regular<int, boost::use_default, boost::use_default, boost::use_default>’:
/home/jay/.conan/data/boost/1.78.0/_/_/package/f27dc58832576b9a0d4420949ffa1a355c99ba20/include/boost/histogram/axis/regular.hpp:239:3: required by substitution of ‘template<class Value, class Transform, class MetaData, class Options> regular(unsigned int, Value, Value, typename boost::histogram::axis::metadata_base_t<MetaData>::metadata_type)-> boost::histogram::axis::regular<Value, Transform, MetaData, Options> [with Value = int; Transform = boost::use_default; MetaData = boost::use_default; Options = boost::use_default]’
/home/jay/Desktop/phd/corsika_master/corsika/tests/framework/testSaveBoostHistogram.cpp:28:43: required from here
/home/jay/.conan/data/boost/1.78.0/_/_/package/f27dc58832576b9a0d4420949ffa1a355c99ba20/include/boost/histogram/axis/regular.hpp:198:62: error: static assertion failed: regular axis requires floating point type
198 | static_assert(std::is_floating_point<internal_value_type>::value,
| ^~~~~
/home/jay/.conan/data/boost/1.78.0/_/_/package/f27dc58832576b9a0d4420949ffa1a355c99ba20/include/boost/histogram/axis/regular.hpp:198:62: note: ‘std::integral_constant<bool, false>::value’ evaluates to false
make[2]: *** [tests/framework/CMakeFiles/testFramework.dir/build.make:104: tests/framework/CMakeFiles/testFramework.dir/testSaveBoostHistogram.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:949: tests/framework/CMakeFiles/testFramework.dir/all] Error 2
make: *** [Makefile:146: all] Error 2