diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-10-01 21:58:12 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-02-24 07:57:25 -0800 |
commit | e68d4c6f5f6086c2816ed6d870e23e824c661f92 (patch) | |
tree | a791c6bcfaaf3d62319fc5be522aa4cbe7e76ee8 /src/memory_tracker-inl.h | |
parent | 2035e3d6cb3071dfbe142f8351cde3d883626a38 (diff) | |
download | node-new-e68d4c6f5f6086c2816ed6d870e23e824c661f92.tar.gz |
src: allow unique_ptrs with custom deleter in memory tracker
Originally landed in the QUIC repo
Original review metadata:
```
PR-URL: https://github.com/nodejs/quic/pull/145
Reviewed-By: James M Snell <jasnell@gmail.com>
```
PR-URL: https://github.com/nodejs/node/pull/31870
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/memory_tracker-inl.h')
-rw-r--r-- | src/memory_tracker-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memory_tracker-inl.h b/src/memory_tracker-inl.h index 1a28e2dd79..9e6201442a 100644 --- a/src/memory_tracker-inl.h +++ b/src/memory_tracker-inl.h @@ -107,9 +107,9 @@ void MemoryTracker::TrackField(const char* edge_name, } } -template <typename T> +template <typename T, typename D> void MemoryTracker::TrackField(const char* edge_name, - const std::unique_ptr<T>& value, + const std::unique_ptr<T, D>& value, const char* node_name) { if (value.get() == nullptr) { return; |