From 7bf50e9b5b2863a7e02b35fbb221d264b3024f16 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 5 May 2014 18:29:14 -0700 Subject: [PATCH] fix build of test_array_allocation.cpp on older boost --- benchmark/test_array_allocation.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/benchmark/test_array_allocation.cpp b/benchmark/test_array_allocation.cpp index 04615747f..28ab02aee 100644 --- a/benchmark/test_array_allocation.cpp +++ b/benchmark/test_array_allocation.cpp @@ -4,7 +4,10 @@ #include #include #include +#include +#if BOOST_VERSION >= 105400 #include +#endif // http://stackoverflow.com/questions/17347254/why-is-allocation-and-deallocation-of-stdvector-slower-than-dynamic-array-on-m @@ -262,6 +265,7 @@ public: } }; +#if BOOST_VERSION >= 105400 // http://i42.co.uk/stuff/vecarray.htm // http://www.boost.org/doc/libs/1_54_0/doc/html/boost/container/static_vector.html @@ -286,6 +290,7 @@ public: } } }; +#endif int main(int argc, char** argv) { @@ -332,9 +337,11 @@ int main(int argc, char** argv) test6 test_runner(params); run(test_runner,"valarray"); } +#if BOOST_VERSION >= 105400 { test7 test_runner(params); run(test_runner,"static_vector"); } +#endif return 0; }