You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: fix LIEF compilation failure with C++20 and {fmt}
When building LIEF with C++20 standard, the unqualified calls
to `format` and `join` in `Section.cpp` conflict with the C++20
`std::format` header provided by libstdc++ and MSVC. `std::format`
attempts to evaluate these calls at compile time but fails because
`fmt::join_view` is not a valid `std::formatter` type.
Explicitly use `fmt::format` and `fmt::join`, and convert the joined
views into `std::string` values prior to passing them into the final
formatting calls to prevent the compiler from instantiating `std::format`.
Fixes CI build failures on Linux ARM, macOS, and Windows.
Refs: #62682
0 commit comments