Skip to content

Commit

Permalink
src: fix gcc-11 c++20 compilation
Browse files Browse the repository at this point in the history
Fixes: nodejs/node-addon-api#1007

PR-URL: nodejs/node-addon-api#1009
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
John French committed Jun 14, 2021
1 parent 5a64afe commit b03458c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2474,9 +2474,8 @@ namespace Napi {
Finalizer finalizeCallback,
FinalizerDataType* data = nullptr);

TypedThreadSafeFunction<ContextType, DataType, CallJs>();
TypedThreadSafeFunction<ContextType, DataType, CallJs>(
napi_threadsafe_function tsFunctionValue);
TypedThreadSafeFunction();
TypedThreadSafeFunction(napi_threadsafe_function tsFunctionValue);

operator napi_threadsafe_function() const;

Expand Down

0 comments on commit b03458c

Please sign in to comment.