Skip to content

Commit

Permalink
Fix enum logging with Qt and auto-separators enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Drachuk committed Mar 27, 2024
1 parent e5a7c2c commit 3f92c0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions headers/alog/record.h
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ template<typename T, typename std::enable_if_t<std::is_enum_v<T> && QtPrivate::I
inline ALog::Record&& operator<< (ALog::Record&& record, T value) {
const auto metaEnum = QMetaEnum::fromType<T>();

[[maybe_unused]] auto _checkSS = record.updateSkipSeparators(6);
record.appendMessageAL(metaEnum.enumName());
record.appendMessage("(");
record = std::move(record) << static_cast<std::underlying_type_t<T>>(value);
Expand Down

0 comments on commit 3f92c0c

Please sign in to comment.