From bfe38e67c07eeabfe8cdf1c78551ff210267e7ec Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Thu, 21 Dec 2023 12:56:55 +0100 Subject: [PATCH] try with typename --- include/noobject.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/noobject.h b/include/noobject.h index b6cf8cb..421dcbf 100644 --- a/include/noobject.h +++ b/include/noobject.h @@ -407,7 +407,7 @@ template class ClassDefinition { public: // Instance class method template , bool> = true> + typename std::enable_if_t, bool> = true> ClassDefinition &def(NAME name) { typename NoObjectWrap::InstanceMethodCallback wrapper; @@ -423,7 +423,7 @@ template class ClassDefinition { // Instance class getter/setter template , bool> = true> + typename std::enable_if_t, bool> = true> ClassDefinition &def(NAME name) { typename NoObjectWrap::InstanceGetterCallback getter = &NoObjectWrap::template GetterWrapper; @@ -437,7 +437,7 @@ template class ClassDefinition { // Static class method template >, bool> = true> + typename std::enable_if_t>, bool> = true> ClassDefinition &def(NAME name) { Napi::Function::Callback wrapper; if constexpr (RET.isAsync()) { @@ -451,7 +451,7 @@ template class ClassDefinition { // Static class getter/setter template >, bool> = true> + typename std::enable_if_t>, bool> = true> ClassDefinition &def(NAME name) { typename NoObjectWrap::StaticGetterCallback getter = &GetterWrapper, MEMBER>;