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 <[email protected]>
  • Loading branch information
Marlyfleitas committed Jun 14, 2021
1 parent 3298e99 commit 11cf4bc
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 11cf4bc

Please sign in to comment.