diff --git a/src/memory_tracker-inl.h b/src/memory_tracker-inl.h index da37f72c737607..bb91e8416610fd 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 d22116918afec8..e666190c416e72 100644 --- a/src/memory_tracker.h +++ b/src/memory_tracker.h @@ -134,9 +134,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); // For containers, the elements will be graphed as grandchildren nodes