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; }