From e02ec0c24d56bce4a0d8636a340e15cd223d1930 Mon Sep 17 00:00:00 2001 From: Bradley Date: Thu, 26 Jul 2018 03:02:03 -0700 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/11871 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Reviewed-by: Giacomo Travaglini Maintainer: Gabe Black --- src/base/compiler.hh | 4 ++-- 1 file 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 -- 2.30.2