Use the default allocator for std::vector

This commit is contained in:
Matthew Barr 2017-03-16 16:30:01 +11:00
parent de52b30c3e
commit 01b91da1cd

View File

@ -52,8 +52,7 @@ using small_vector = boost::container::small_vector<T, N, Allocator>;
#else
// Boost version isn't new enough, fall back to just using std::vector.
template <class T, std::size_t N,
typename Allocator = boost::container::new_allocator<T>>
template <class T, std::size_t N, typename Allocator = std::allocator<T>>
using small_vector = std::vector<T, Allocator>;
#endif // HAVE_BOOST_CONTAINER_SMALL_VECTOR