Skip to content

Commit 1445170

Browse files
committed
Opt out std::complex from tuple formatting
1 parent 7a0da1c commit 1445170

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/fmt/std.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ struct formatter<std::atomic_flag, Char> : formatter<bool, Char> {
647647
};
648648
#endif // __cpp_lib_atomic_flag_test
649649

650+
template <typename T> struct is_tuple_like;
651+
652+
template <typename T>
653+
struct is_tuple_like<std::complex<T>> : std::false_type {};
654+
650655
template <typename T, typename Char> struct formatter<std::complex<T>, Char> {
651656
private:
652657
detail::dynamic_format_specs<Char> specs_;

0 commit comments

Comments
 (0)