]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Fix broken include in small_vector.h (#359) develop
authorRaúl Marín <git@rmr.ninja>
Thu, 15 Jan 2026 17:57:53 +0000 (18:57 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Jan 2026 17:57:53 +0000 (19:57 +0200)
src/util/small_vector.h

index 5bad7df9f8cece7467fbffc39dd1645b02d29023..2a1232abaa4abb504fbe81a1c6960d5695e60c25 100644 (file)
@@ -56,6 +56,8 @@
 
 #if defined(HAVE_BOOST_CONTAINER_SMALL_VECTOR)
 #  include <boost/container/small_vector.hpp>
+#else
+#  include <vector>
 #endif
 
 namespace ue2 {
@@ -68,8 +70,6 @@ using small_vector = boost::container::small_vector<T, N, Allocator>;
 
 #else
 
-#include <vector>
-
 // Boost version isn't new enough, fall back to just using std::vector.
 template <class T, std::size_t N, typename Allocator = std::allocator<T>>
 using small_vector = std::vector<T, Allocator>;