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>
This commit is contained in:
Bradley
2018-07-26 03:02:03 -07:00
committed by Bradley Wang
parent 1bab261961
commit e02ec0c24d

View File

@@ -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