Use the std::derived_from concept when applicable

This probably makes things much clearer at a glance instead of using a
blanked typename.
This commit is contained in:
Robbert van der Helm
2021-05-20 14:05:36 +02:00
parent 626c31beb3
commit c2186fa55b
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -152,8 +152,8 @@ class Vst2EventHandler : public AdHocSocketHandler<Thread> {
* @relates Vst2EventHandler::receive_events
* @relates passthrough_event
*/
template <typename D>
intptr_t send_event(D& data_converter,
template <std::derived_from<DefaultDataConverter> Converter>
intptr_t send_event(Converter& data_converter,
std::optional<std::pair<Vst2Logger&, bool>> logging,
int opcode,
int index,
+1 -1
View File
@@ -183,7 +183,7 @@ Vst2PluginBridge::~Vst2PluginBridge() noexcept {
}
}
class DispatchDataConverter : DefaultDataConverter {
class DispatchDataConverter : public DefaultDataConverter {
public:
DispatchDataConverter(std::vector<uint8_t>& chunk_data,
AEffect& plugin,
+1 -1
View File
@@ -486,7 +486,7 @@ intptr_t Vst2Bridge::dispatch_wrapper(AEffect* plugin,
}
}
class HostCallbackDataConverter : DefaultDataConverter {
class HostCallbackDataConverter : public DefaultDataConverter {
public:
HostCallbackDataConverter(AEffect* plugin,
VstTimeInfo& last_time_info) noexcept