diff options
author | Dan Albert <danalbert@google.com> | 2014-11-20 18:32:52 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-11-20 18:33:24 -0800 |
commit | d6e3557f81e40cda643d2bb5b759323d8ce34067 (patch) | |
tree | 4930a52c2a2e05d153ae0131bb10e89edd2c48ef | |
parent | d2a8aad0cd6dfa5f3d3b1fa1162cdcc9601588fc (diff) | |
download | extras-d6e3557f81e40cda643d2bb5b759323d8ce34067.tar.gz |
More C++11 compatibility.
Bug: 18466763
Change-Id: Ia308b7c8017cfdb7bebf5c307730ef3f0ef6f572
-rw-r--r-- | tests/memtest/bandwidth.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdlib.h> +#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 { |