summaryrefslogtreecommitdiff
path: root/retrace
diff options
context:
space:
mode:
authorAlexander Trukhin <alxtry@gmail.com>2015-10-29 23:33:41 +0300
committerAlexander Trukhin <alxtry@gmail.com>2015-10-29 23:37:38 +0300
commitca7f9bc177ed01c1fbe8ea51303de36db62442c4 (patch)
treea3574fb5347f44219a7f80ba8f9d5aa8840095c5 /retrace
parent481e383c02b7f7c6202d3d36cb237297459006d8 (diff)
Metrics abstraction: correct allocator template arguments.
Previous version does not work with libc++. A bit strange that it worked well with libstdc++.
Diffstat (limited to 'retrace')
-rw-r--r--retrace/metric_backend_amd_perfmon.hpp2
-rw-r--r--retrace/metric_backend_intel_perfquery.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/retrace/metric_backend_amd_perfmon.hpp b/retrace/metric_backend_amd_perfmon.hpp
index cb5c6245..39be7e9d 100644
--- a/retrace/metric_backend_amd_perfmon.hpp
+++ b/retrace/metric_backend_amd_perfmon.hpp
@@ -78,7 +78,7 @@ private:
MmapAllocator<unsigned> alloc; // allocator
// deque with custom allocator
template <class T>
- using mmapdeque = std::deque<T, MmapAllocator<std::deque<T>>>;
+ using mmapdeque = std::deque<T, MmapAllocator<T>>;
// data storage
mmapdeque<mmapdeque<unsigned*>> data;
unsigned curPass;
diff --git a/retrace/metric_backend_intel_perfquery.hpp b/retrace/metric_backend_intel_perfquery.hpp
index 6c447804..91be55b3 100644
--- a/retrace/metric_backend_intel_perfquery.hpp
+++ b/retrace/metric_backend_intel_perfquery.hpp
@@ -80,7 +80,7 @@ private:
MmapAllocator<unsigned char> alloc;
// deque with custom allocator
template <class T>
- using mmapdeque = std::deque<T, MmapAllocator<std::deque<T>>>;
+ using mmapdeque = std::deque<T, MmapAllocator<T>>;
// data storage
mmapdeque<mmapdeque<unsigned char*>> data;
unsigned curPass;