diff --git a/bench/bench_alloc_shrink_to_fit.cpp b/bench/bench_alloc_shrink_to_fit.cpp index 627d12a..33bde3e 100644 --- a/bench/bench_alloc_shrink_to_fit.cpp +++ b/bench/bench_alloc_shrink_to_fit.cpp @@ -82,8 +82,10 @@ void vector_test_template(unsigned int num_iterations, unsigned int num_elements cpu_timer timer; timer.resume(); + #ifndef NDEBUG typedef bc::container_detail::integral_constant ::value> alloc_version; + #endif for(unsigned int r = 0; r != num_iterations; ++r){ bc::vector v(num_elements);