From 14cf5c3684986f4cc4d32451bffd2bd3ee3fe153 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Mon, 31 Jul 2017 12:26:45 +1000 Subject: [PATCH] small_vector: require boost >= 1.61 We use the small_vector constructors introduced in Boost 1.61 (trac bug 11866, github commit b436c91). If the Boost version is too old, we fall back to using std::vector. --- src/util/small_vector.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/small_vector.h b/src/util/small_vector.h index 6293759c..0f54bbf6 100644 --- a/src/util/small_vector.h +++ b/src/util/small_vector.h @@ -33,7 +33,12 @@ #include -#if BOOST_VERSION >= 105800 +/* + * We use the small_vector constructors introduced in Boost 1.61 (trac bug + * #11866, github commit b436c91). If the Boost version is too old, we fall + * back to using std::vector. + */ +#if BOOST_VERSION >= 106100 # define HAVE_BOOST_CONTAINER_SMALL_VECTOR #endif