mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 13:40:05 +02:00
Use the in new place optional extension
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include <pluginterfaces/vst/ivstmessage.h>
|
||||
|
||||
#include "../../bitsery/ext/in-place-optional.h"
|
||||
#include "../common.h"
|
||||
#include "attribute-list.h"
|
||||
#include "base.h"
|
||||
@@ -72,7 +72,7 @@ class YaMessagePtr : public Steinberg::Vst::IMessage {
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.ext(message_id, bitsery::ext::StdOptional{},
|
||||
s.ext(message_id, bitsery::ext::InPlaceOptional{},
|
||||
[](S& s, std::string& id) { s.text1b(id, 1024); });
|
||||
s.value8b(original_message_ptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user