1
0
mirror of synced 2024-09-24 19:48:25 +02:00

Use hex::derived_from for compatibility with macos

This commit is contained in:
WerWolv 2021-01-13 17:41:16 +01:00
parent eb066b3539
commit 9ade281a92

View File

@ -2,7 +2,8 @@
#include <hex.hpp>
#include <concepts>
#include <hex/helpers/utils.hpp>
#include <functional>
#include <map>
#include <string>
@ -93,7 +94,7 @@ namespace hex {
struct Views {
Views() = delete;
template<std::derived_from<View> T, typename ... Args>
template<hex::derived_from<View> T, typename ... Args>
static T* add(Args&& ... args) {
return static_cast<T*>(add(new T(std::forward<Args>(args)...)));
}