Resolve boost/std unique_ptr issue

This commit is contained in:
Robin Gareus 2023-04-08 13:23:30 +02:00
parent a27a88f9f2
commit 4b1d5d9b63
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 1 additions and 9 deletions

View File

@ -298,7 +298,7 @@ public:
tresult PLUGIN_API createInstance (TUID cid, TUID _iid, void** obj) SMTG_OVERRIDE;
protected:
std::shared_ptr<PlugInterfaceSupport> _plug_interface_support;
std::unique_ptr<PlugInterfaceSupport> _plug_interface_support;
};
class LIBARDOUR_LOCAL Vst3ParamValueQueue : public Vst::IParamValueQueue

View File

@ -20,10 +20,6 @@
#include <algorithm>
#include <ctype.h>
#if (__cplusplus >= 201103L)
#include <boost/make_unique.hpp>
#endif
#include "ardour/vst3_host.h"
#include "pbd/atomic.h"
@ -461,11 +457,7 @@ PlugInterfaceSupport::addPlugInterfaceSupported (const TUID id)
HostApplication::HostApplication ()
{
#if (__cplusplus >= 201103L)
_plug_interface_support = boost::make_unique<PlugInterfaceSupport> ();
#else
_plug_interface_support.reset (new PlugInterfaceSupport);
#endif
}
tresult