diff options
author | Dan Albert <danalbert@google.com> | 2014-11-21 02:41:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-21 02:41:42 +0000 |
commit | e1eaca2e35770216fb46ae363ccf050289a7b054 (patch) | |
tree | 4930a52c2a2e05d153ae0131bb10e89edd2c48ef | |
parent | d2a8aad0cd6dfa5f3d3b1fa1162cdcc9601588fc (diff) | |
parent | d6e3557f81e40cda643d2bb5b759323d8ce34067 (diff) | |
download | extras-e1eaca2e35770216fb46ae363ccf050289a7b054.tar.gz |
Merge "More C++11 compatibility."
-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 { |