Pass a marker struct instead of an empty array

This commit is contained in:
Robbert van der Helm
2020-03-08 18:51:16 +01:00
parent d8e39ed16a
commit 5523871fd8
4 changed files with 16 additions and 19 deletions
+1 -3
View File
@@ -145,9 +145,7 @@ void Logger::log_event(bool is_dispatch,
overload{
[&](const std::nullptr_t&) { message << "<nullptr>"; },
[&](const std::string& s) { message << "\"" << s << "\""; },
[&](const std::array<char, max_string_length>&) {
message << "<writeable_buffer>";
}},
[&](const NeedsBuffer&) { message << "<writable_buffer>"; }},
payload);
message << ")";