From: Bradley Date: Thu, 26 Jul 2018 10:02:03 +0000 (-0700) Subject: base: Replace cppversion == version with >= version X-Git-Tag: v19.0.0.0~1960 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e02ec0c24d56bce4a0d8636a340e15cd223d1930;p=gem5.git 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 --- 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