X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fsmall_vector.h;h=67f18108b0c7b7dc37d08af0f331e57d954c6812;hp=7287585ac0ea92284f95d0c4ca9c174b9d9c00f0;hb=3e19d28a142149241d81c5e736aa4117fe7cbec8;hpb=2ee091de375639937677453f8f2742f22d3334d4 diff --git a/folly/small_vector.h b/folly/small_vector.h index 7287585a..67f18108 100644 --- a/folly/small_vector.h +++ b/folly/small_vector.h @@ -413,6 +413,7 @@ class small_vector : public detail::small_vector_base< typedef value_type& reference; typedef value_type const& const_reference; typedef value_type* iterator; + typedef value_type* pointer; typedef value_type const* const_iterator; typedef std::ptrdiff_t difference_type; @@ -420,6 +421,9 @@ class small_vector : public detail::small_vector_base< typedef std::reverse_iterator const_reverse_iterator; small_vector() = default; + // Allocator is unused here. It is taken in for compatibility with std::vector + // interface, but it will be ignored. + small_vector(const std::allocator&) {} small_vector(small_vector const& o) { auto n = o.size();