#include <boost/safe_numerics/safe_integer.hpp>
#include <fmt/format.h>
#include <fmt/ostream.h>
template<typename Stored,
Stored Min,
Stored Max,
typename P,
typename E>
struct fmt::formatter<
boost::safe_numerics::safe_base<
Stored, Min, Max, P, E
>
> : fmt::ostream_formatter
{
};
void la()
{
fmt::print("{}", boost::safe_numerics::safe<int>{ 4 });
}
It's clearly a gcc bug, so it would be fair game to ignore it. But it affects Ubuntu 20.04.