summaryrefslogtreecommitdiff
path: root/src/mem/gems_common/Vector.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/gems_common/Vector.hh')
-rw-r--r--src/mem/gems_common/Vector.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/gems_common/Vector.hh b/src/mem/gems_common/Vector.hh
index e10849213..ddba7a2fc 100644
--- a/src/mem/gems_common/Vector.hh
+++ b/src/mem/gems_common/Vector.hh
@@ -38,6 +38,7 @@
#ifndef VECTOR_H
#define VECTOR_H
+#include <algorithm>
#include <cassert>
#include <iostream>
#include <vector>
@@ -184,7 +185,7 @@ template <class TYPE>
inline
void Vector<TYPE>::sortVector()
{
- sort(&m_vec[0], &m_vec[m_size]);
+ std::sort(&m_vec[0], &m_vec[m_size]);
}
template <class TYPE>