mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Fix returning buffers from std::visit
Last time I tried it references somehow didn't work.
This commit is contained in:
@@ -142,13 +142,16 @@ void Logger::log_event(bool is_dispatch,
|
||||
<< ", option = " << option << ", data = ";
|
||||
|
||||
std::visit(
|
||||
overload{[&](std::nullptr_t) { message << "<nullptr>"; },
|
||||
[&](std::string s) { message << "\"" << s << "\""; },
|
||||
[&](std::array<char, max_string_length>) {
|
||||
message << "<writeable_buffer>";
|
||||
}},
|
||||
overload{
|
||||
[&](const std::nullptr_t&) { message << "<nullptr>"; },
|
||||
[&](const std::string& s) { message << "\"" << s << "\""; },
|
||||
[&](const std::array<char, max_string_length>&) {
|
||||
message << "<writeable_buffer>";
|
||||
}},
|
||||
payload);
|
||||
|
||||
message << ")";
|
||||
|
||||
log(message.str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user