Skip to content

Commit 27bf8b4

Browse files
17steenrogerqcify
andauthored
Add FMT_CONSTEXPR to static_format_result members (#4591)
Co-authored-by: Robin Oger <[email protected]>
1 parent 407c905 commit 27bf8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fmt/compile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,8 @@ template <size_t N> class static_format_result {
559559
*fmt::format_to(data, fmt, std::forward<T>(args)...) = '\0';
560560
}
561561

562-
auto str() const -> fmt::string_view { return {data, N - 1}; }
563-
auto c_str() const -> const char* { return data; }
562+
FMT_CONSTEXPR auto str() const -> fmt::string_view { return {data, N - 1}; }
563+
FMT_CONSTEXPR auto c_str() const -> const char* { return data; }
564564
};
565565

566566
/**

0 commit comments

Comments
 (0)