Skip to content

Commit 789aa69

Browse files
fix: add missing operator (#4627)
1 parent 2a50a0d commit 789aa69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/fmt/base.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,9 @@ class locale_ref {
930930
}
931931

932932
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
933+
#else
934+
public:
935+
inline explicit operator bool() const noexcept { return false; }
933936
#endif // FMT_USE_LOCALE
934937

935938
public:

0 commit comments

Comments
 (0)