We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407c905 commit 27bf8b4Copy full SHA for 27bf8b4
include/fmt/compile.h
@@ -559,8 +559,8 @@ template <size_t N> class static_format_result {
559
*fmt::format_to(data, fmt, std::forward<T>(args)...) = '\0';
560
}
561
562
- auto str() const -> fmt::string_view { return {data, N - 1}; }
563
- auto c_str() const -> const char* { return data; }
+ FMT_CONSTEXPR auto str() const -> fmt::string_view { return {data, N - 1}; }
+ FMT_CONSTEXPR auto c_str() const -> const char* { return data; }
564
};
565
566
/**
0 commit comments