On Mon, Mar 02, 2020 at 08:57:46AM -0500, Tom Callaway wrote:
Wait, I know that $TOPIC is scary, come back.
Chromium has this chunk of code (in
third_party/angle/src/common/PackedEnums.h):
// This horrible const_cast pattern is necessary to work
around a constexpr limitation.
// See
https://stackoverflow.com/q/34199774/ . Note that it
should be fixed with C++17.
const_cast<T &>(const_cast<const Storage &>(
mPrivateData)[static_cast<UnderlyingType>(it->first)]) =
it->second;
This code built with gcc9, but with gcc10 it no longer works.
Please try gcc-10.0.1-0.9.fc{32,33} (f32 version hasn't finished building
yet though).
Jakub