From 3a6ecab4b6aa207606e8f015859118459b3a4462 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 5 Oct 2024 14:31:38 +0300 Subject: Fix 'reference to value_type is ambiguous' error for small_{vector,list,forward_list} types --- libbutl/small-forward-list.hxx | 1 + libbutl/small-list.hxx | 1 + libbutl/small-vector.hxx | 1 + 3 files changed, 3 insertions(+) diff --git a/libbutl/small-forward-list.hxx b/libbutl/small-forward-list.hxx index 8d1cf68..db87d69 100644 --- a/libbutl/small-forward-list.hxx +++ b/libbutl/small-forward-list.hxx @@ -57,6 +57,7 @@ namespace butl using buffer_type = small_forward_list_buffer; using allocator_type = small_allocator; using base_type = std::forward_list; + using typename base_type::value_type; small_forward_list () : base_type (allocator_type (this)) {} diff --git a/libbutl/small-list.hxx b/libbutl/small-list.hxx index 7cb51fd..c75f49a 100644 --- a/libbutl/small-list.hxx +++ b/libbutl/small-list.hxx @@ -59,6 +59,7 @@ namespace butl using buffer_type = small_list_buffer; using allocator_type = small_allocator; using base_type = std::list; + using typename base_type::value_type; small_list () : base_type (allocator_type (this)) {} diff --git a/libbutl/small-vector.hxx b/libbutl/small-vector.hxx index 44a3ef5..787d73a 100644 --- a/libbutl/small-vector.hxx +++ b/libbutl/small-vector.hxx @@ -38,6 +38,7 @@ namespace butl using buffer_type = small_allocator_buffer; using allocator_type = small_allocator; using base_type = std::vector; + using typename base_type::value_type; small_vector () : base_type (allocator_type (this)) -- cgit v1.1