Skip to content

Fix use of enum struct in fmt::format

Marco Clemencic requested to merge fixes-for-dev4 into master

In lhcb-lcg-dev4 we have fmtlib 8 and while fmtlib 7 accepted the code:

#include <fmt/core.h>
enum struct X {};
int main() {
  fmt::print("{}\n", X{0});
}

with fmtlib 8 it is not valid anymore.

Merge request reports