File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -2757,9 +2757,7 @@ template <typename... T> struct fstring {
27572757 static_assert (count<(is_view<remove_cvref_t <T>>::value &&
27582758 std::is_reference<T>::value)...>() == 0 ,
27592759 " passing views as lvalues is disallowed" );
2760- #if FMT_USE_CONSTEVAL
2761- parse_format_string<char >(s, checker (s, arg_pack ()));
2762- #endif
2760+ if (FMT_USE_CONSTEVAL) parse_format_string<char >(s, checker (s, arg_pack ()));
27632761#ifdef FMT_ENFORCE_COMPILE_STRING
27642762 static_assert (
27652763 FMT_USE_CONSTEVAL && sizeof (s) != 0 ,
@@ -2783,9 +2781,8 @@ template <typename... T> struct fstring {
27832781 std::is_same<typename S::char_type, char >::value)>
27842782 FMT_ALWAYS_INLINE fstring(const S&) : str(S()) {
27852783 FMT_CONSTEXPR auto sv = string_view (S ());
2786- FMT_CONSTEXPR int unused =
2787- (parse_format_string (sv, checker (sv, arg_pack ())), 0 );
2788- detail::ignore_unused (unused);
2784+ FMT_CONSTEXPR int x = (parse_format_string (sv, checker (sv, arg_pack ())), 0 );
2785+ detail::ignore_unused (x);
27892786 }
27902787 fstring (runtime_format_string<> fmt) : str(fmt.str) {}
27912788
You can’t perform that action at this time.
0 commit comments