From 963d54cabe54248fe7992e3bfc1332e4e5b2cce7 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 1 Oct 2019 21:58:12 +0200 Subject: [PATCH] src: allow unique_ptrs with custom deleter in memory tracker PR-URL: https://github.com/nodejs/quic/pull/145 Reviewed-By: James M Snell --- src/memory_tracker-inl.h | 4 ++-- src/memory_tracker.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/memory_tracker-inl.h b/src/memory_tracker-inl.h index 4a01a174aa..2e39fa21a9 100644 --- a/src/memory_tracker-inl.h +++ b/src/memory_tracker-inl.h @@ -99,9 +99,9 @@ void MemoryTracker::TrackField(const char* edge_name, } } -template +template void MemoryTracker::TrackField(const char* edge_name, - const std::unique_ptr& value, + const std::unique_ptr& value, const char* node_name) { if (value.get() == nullptr) { return; diff --git a/src/memory_tracker.h b/src/memory_tracker.h index 99af4c458e..4404683c75 100644 --- a/src/memory_tracker.h +++ b/src/memory_tracker.h @@ -136,9 +136,9 @@ class MemoryTracker { size_t size, const char* node_name = nullptr); // Shortcut to extract the underlying object out of the smart pointer - template + template inline void TrackField(const char* edge_name, - const std::unique_ptr& value, + const std::unique_ptr& value, const char* node_name = nullptr); template void TrackField(const char* edge_name,