I just tried calling fmt::format in a constexpr context (static_assert) and found that it doesn't work. Since C++20 has constexpr support for std::string, it should also be possible to add constexpr support to fmt::format.
#include <string_view>
#include <fmt/core.h>
using namespace std::literals;
static_assert(fmt::format("{}", 5) == "5"sv);
Is there anything against this?
I just tried calling
fmt::formatin a constexpr context (static_assert) and found that it doesn't work. Since C++20 hasconstexprsupport forstd::string, it should also be possible to addconstexprsupport tofmt::format.Is there anything against this?