Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-11-18 16:49:56 +0300
committergengjiawen <technicalcute@gmail.com>2019-11-30 11:51:06 +0300
commit52a3e3560484ec3ad4479ef80d829f7c99d39e80 (patch)
tree550033e4de5f83add146bfccec15bd6dc70a2f9c /src/req_wrap.h
parent6c4cf862d0f17be7a4113d720567d3ce8f2d6fac (diff)
src: clean up node_file.h
- Move inline functions into an `-inl.h` file - Move override function definitions into `.cc` files - Remove `using` statements from header files - Make data fields of classes private - Mark classes at the end of hierarchies as `final` This is also partially being done in an attempt to avoid a particular internal compiler error, see https://github.com/nodejs/node/pull/30475#issuecomment-554740850 for details. PR-URL: https://github.com/nodejs/node/pull/30530 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r--src/req_wrap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/req_wrap.h b/src/req_wrap.h
index 36eeb1cbc24..5d7fcb42d01 100644
--- a/src/req_wrap.h
+++ b/src/req_wrap.h
@@ -50,9 +50,10 @@ class ReqWrap : public AsyncWrap, public ReqWrapBase {
private:
friend int GenDebugSymbols();
- template <typename ReqT, typename U>
- friend struct MakeLibuvRequestCallback;
+ // Adding `friend struct MakeLibuvRequestCallback` is not enough anymore
+ // for some reason. Consider this private.
+ public:
typedef void (*callback_t)();
callback_t original_callback_ = nullptr;