diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-10-01 22:58:12 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-02-24 18:57:25 +0300 |
commit | e68d4c6f5f6086c2816ed6d870e23e824c661f92 (patch) | |
tree | a791c6bcfaaf3d62319fc5be522aa4cbe7e76ee8 /src/memory_tracker.h | |
parent | 2035e3d6cb3071dfbe142f8351cde3d883626a38 (diff) |
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.h')
-rw-r--r-- | src/memory_tracker.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memory_tracker.h b/src/memory_tracker.h index 616976ab2af..4a66e9ce74c 100644 --- a/src/memory_tracker.h +++ b/src/memory_tracker.h @@ -140,9 +140,9 @@ class MemoryTracker { const char* node_name = nullptr); // Shortcut to extract the underlying object out of the smart pointer - template <typename T> + template <typename T, typename D> inline void TrackField(const char* edge_name, - const std::unique_ptr<T>& value, + const std::unique_ptr<T, D>& value, const char* node_name = nullptr); template <typename T> |