src: add direct dependency on *-inl.h
file
PR-URL: https://github.com/nodejs/node/pull/23808 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me>
This commit is contained in:
parent
4044b06c08
commit
586daae7fd
@ -5,6 +5,7 @@
|
||||
|
||||
#include <functional>
|
||||
#include <unicode/unistr.h>
|
||||
#include "util-inl.h"
|
||||
|
||||
namespace node {
|
||||
namespace inspector {
|
||||
|
@ -160,8 +160,8 @@ ContainerOfHelper<Inner, Outer>::operator TypeName*() const {
|
||||
}
|
||||
|
||||
template <typename Inner, typename Outer>
|
||||
inline ContainerOfHelper<Inner, Outer> ContainerOf(Inner Outer::*field,
|
||||
Inner* pointer) {
|
||||
constexpr ContainerOfHelper<Inner, Outer> ContainerOf(Inner Outer::*field,
|
||||
Inner* pointer) {
|
||||
return ContainerOfHelper<Inner, Outer>(field, pointer);
|
||||
}
|
||||
|
||||
|
@ -198,8 +198,8 @@ class ContainerOfHelper {
|
||||
// Calculate the address of the outer (i.e. embedding) struct from
|
||||
// the interior pointer to a data member.
|
||||
template <typename Inner, typename Outer>
|
||||
inline ContainerOfHelper<Inner, Outer> ContainerOf(Inner Outer::*field,
|
||||
Inner* pointer);
|
||||
constexpr ContainerOfHelper<Inner, Outer> ContainerOf(Inner Outer::*field,
|
||||
Inner* pointer);
|
||||
|
||||
// If persistent.IsWeak() == false, then do not call persistent.Reset()
|
||||
// while the returned Local<T> is still in scope, it will destroy the
|
||||
|
Loading…
x
Reference in New Issue
Block a user