Skip to content

Commit

Permalink
fix: try to fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 31, 2023
1 parent feb267a commit 11e4a38
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/include/Utils/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,13 @@ class MAA_UTILS_API Logger
else if constexpr (std::same_as<std::wstring, std::decay_t<T>>) {
return from_u16(std::forward<T>(value));
}
else if constexpr (has_output_operator<T> && std::same_as<bool, std::decay_t<T>>) {
std::stringstream ss;
ss << std::boolalpha << std::forward<T>(value);
return std::move(ss).str();
}
else if constexpr (has_output_operator<T>) {
std::stringstream ss;
if constexpr (std::same_as<bool, std::decay_t<T>>) {
ss << std::boolalpha;
}
ss << std::forward<T>(value);
return std::move(ss).str();
}
Expand Down

0 comments on commit 11e4a38

Please sign in to comment.