core/util: fix MemberMetadata compile on gcc

This commit is contained in:
outfoxxed 2024-08-02 01:32:12 -07:00
parent 2c87cc3803
commit 79b2fea52e
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -143,7 +143,7 @@ class MemberMetadata {
public: public:
using Type = Traits::Type; using Type = Traits::Type;
using Ref = const Type&; using Ref = const Type&;
using Ret = std::conditional_t<signal == nullptr, void, DropEmitter>; using Ret = std::conditional_t<std::is_null_pointer_v<decltype(signal)>, void, DropEmitter>;
static Ref get(const Class* obj) { return obj->*member; } static Ref get(const Class* obj) { return obj->*member; }