]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
small_vector: require boost >= 1.61
authorJustin Viiret <justin.viiret@intel.com>
Mon, 31 Jul 2017 02:26:45 +0000 (12:26 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 01:18:43 +0000 (11:18 +1000)
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

index 6293759c6215182b6b9848f915e917cb91bce381..0f54bbf6bf6dc5f65f749507b8b6bd107fbd375c 100644 (file)
 
 #include <boost/version.hpp>
 
-#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