| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 88ccb44 commit 8fa6373
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,9 +107,9 @@ void MemoryTracker::TrackField(const char* edge_name, | |||
| 107 | 107 | } | |
| 108 | 108 | } | |
| 109 | 109 | ||
| 110 | - template <typename T> | ||
| 110 | + template <typename T, typename D> | ||
| 111 | 111 | void MemoryTracker::TrackField(const char* edge_name, | |
| 112 | - const std::unique_ptr<T>& value, | ||
| 112 | + const std::unique_ptr<T, D>& value, | ||
| 113 | 113 | const char* node_name) { | |
| 114 | 114 | if (value.get() == nullptr) { | |
| 115 | 115 | return; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -140,9 +140,9 @@ class MemoryTracker { | |||
| 140 | 140 | const char* node_name = nullptr); | |
| 141 | 141 | ||
| 142 | 142 | // Shortcut to extract the underlying object out of the smart pointer | |
| 143 | - template <typename T> | ||
| 143 | + template <typename T, typename D> | ||
| 144 | 144 | inline void TrackField(const char* edge_name, | |
| 145 | - const std::unique_ptr<T>& value, | ||
| 145 | + const std::unique_ptr<T, D>& value, | ||
| 146 | 146 | const char* node_name = nullptr); | |
| 147 | 147 | ||
| 148 | 148 | template <typename T> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments