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,