Skip to content

Commit

Permalink
add "typename" to template argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Dec 4, 2019
1 parent 899a12a commit 66a07c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napi-inl.h
Expand Up @@ -2822,15 +2822,15 @@ PropertyDescriptor::Accessor(Name name,
});
}

template <PropertyDescriptor::GetterCallback Getter>
template <typename PropertyDescriptor::GetterCallback Getter>
napi_value
PropertyDescriptor::GetterCallbackWrapper(napi_env env,
napi_callback_info info) {
CallbackInfo cbInfo(env, info);
return Getter(cbInfo);
}

template <PropertyDescriptor::SetterCallback Setter>
template <typename PropertyDescriptor::SetterCallback Setter>
napi_value
PropertyDescriptor::SetterCallbackWrapper(napi_env env,
napi_callback_info info) {
Expand Down

0 comments on commit 66a07c1

Please sign in to comment.