diff --git a/libmemunreachable/Allocator.h b/libmemunreachable/Allocator.h index b0a4d4cfb..3b5504d72 100644 --- a/libmemunreachable/Allocator.h +++ b/libmemunreachable/Allocator.h @@ -209,7 +209,7 @@ using vector = std::vector>; template using list = std::list>; -template> +template> using map = std::map>>; template, class KeyEqual = std::equal_to> diff --git a/libmemunreachable/HeapWalker.h b/libmemunreachable/HeapWalker.h index b33893397..7b851c4c1 100644 --- a/libmemunreachable/HeapWalker.h +++ b/libmemunreachable/HeapWalker.h @@ -74,7 +74,7 @@ class HeapWalker { DISALLOW_COPY_AND_ASSIGN(HeapWalker); Allocator allocator_; - using AllocationMap = allocator::map; + using AllocationMap = allocator::map; AllocationMap allocations_; size_t allocation_bytes_; Range valid_allocations_range_; diff --git a/libmemunreachable/LeakFolding.h b/libmemunreachable/LeakFolding.h index e181f2719..65e991631 100644 --- a/libmemunreachable/LeakFolding.h +++ b/libmemunreachable/LeakFolding.h @@ -81,7 +81,7 @@ class LeakFolding { void ComputeDAG(); void AccumulateLeaks(SCCInfo* dominator); - allocator::map leak_map_; + allocator::map leak_map_; Graph leak_graph_; allocator::vector::unique_ptr> leak_scc_; }; diff --git a/libmemunreachable/ThreadCapture.cpp b/libmemunreachable/ThreadCapture.cpp index 635784020..e8a8392cc 100644 --- a/libmemunreachable/ThreadCapture.cpp +++ b/libmemunreachable/ThreadCapture.cpp @@ -86,7 +86,7 @@ class ThreadCaptureImpl { void PtraceDetach(pid_t tid, unsigned int signal); bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info); - allocator::map captured_threads_; + allocator::map captured_threads_; Allocator allocator_; pid_t pid_; std::function inject_test_func_;