From: Justin Viiret Date: Mon, 31 Jul 2017 02:26:45 +0000 (+1000) Subject: small_vector: require boost >= 1.61 X-Git-Tag: v4.6.0^2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14cf5c3684986f4cc4d32451bffd2bd3ee3fe153;p=thirdparty%2Fvectorscan.git 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. --- 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