Investigate minimum required Boost version
- In our CMake config we require 1.6.2, but it is an invalid version. Probably 1.62.0 was meant.
- We may have a diffirent minimum requirement due to upstream code changes.
- There is no guarantee that such old Boost versions support C++20. For example, I can not build OpenMW 0.48 with Boost 1.66.0 and GCC 11 on OpenSUSE 15.4 because C++20 changes how the
std::allocator
works:
/usr/include/boost/iostreams/detail/buffer.hpp:42:56: error: no class template named ‘rebind’ in ‘class std::allocator<char>’
0.47 builds fine. Also I can build 0.48 with Boost 1.75.
And personally I do not like that we enabled C++20 at all - it is too new to be supported widely.
Edited by Andrei Kortunov