summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBradley <animalvgamer@gmail.com>2018-07-26 03:02:03 -0700
committerBradley Wang <radwang@ucdavis.edu>2018-08-10 23:42:29 +0000
commite02ec0c24d56bce4a0d8636a340e15cd223d1930 (patch)
tree115d11b8f274773a3d50ef7c73c96d0602b39e9d /src
parent1bab261961536d81ca325762385ead702b2318ff (diff)
downloadgem5-e02ec0c24d56bce4a0d8636a340e15cd223d1930.tar.xz
base: Replace cppversion == version with >= version
For forward compatibility with later compilers, we should have a greater than comparison instead of an explicit equality with a particular C++ version. Change-Id: If848097420b9575f80134986410da3dab32567da Signed-off-by: Bradley Wang <radwang@ucdavis.edu> Reviewed-on: https://gem5-review.googlesource.com/11871 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Gabe Black <gabeblack@google.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/base/compiler.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/compiler.hh b/src/base/compiler.hh
index 35156ee67..957ef40fd 100644
--- a/src/base/compiler.hh
+++ b/src/base/compiler.hh
@@ -92,7 +92,7 @@
namespace m5
{
-#if __cplusplus == 201402L // C++14
+#if __cplusplus >= 201402L // C++14
using std::make_unique;
@@ -108,7 +108,7 @@ make_unique( Args&&... constructor_args )
);
}
-#endif // __cplusplus == 201402L
+#endif // __cplusplus >= 201402L
} //namespace m5