From d6e3557f81e40cda643d2bb5b759323d8ce34067 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 20 Nov 2014 18:32:52 -0800 Subject: More C++11 compatibility. Bug: 18466763 Change-Id: Ia308b7c8017cfdb7bebf5c307730ef3f0ef6f572 --- tests/memtest/bandwidth.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/memtest/bandwidth.h b/tests/memtest/bandwidth.h index e4a5c96e..1026751f 100644 --- a/tests/memtest/bandwidth.h +++ b/tests/memtest/bandwidth.h @@ -19,6 +19,7 @@ #include +#include "utils/Compat.h" #include "memtest.h" // Bandwidth Class definitions. @@ -92,8 +93,8 @@ protected: private: // Static constants - static const double _NUM_NS_PER_SEC = 1000000000.0; - static const double _BYTES_PER_MB = 1024.0* 1024.0; + static const CONSTEXPR double _NUM_NS_PER_SEC = 1000000000.0; + static const CONSTEXPR double _BYTES_PER_MB = 1024.0* 1024.0; }; class CopyBandwidthBenchmark : public BandwidthBenchmark { -- cgit v1.2.3