aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-10-05 14:31:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-10-05 15:05:49 +0300
commit3a6ecab4b6aa207606e8f015859118459b3a4462 (patch)
tree1d96c850a0bd419b75261bd2cac75206f8530dc2
parentf8ca402859c2f9c9547c0374ea9a53dd6c6abc3c (diff)
Fix 'reference to value_type is ambiguous' error for small_{vector,list,forward_list} typessmall-value-type
-rw-r--r--libbutl/small-forward-list.hxx1
-rw-r--r--libbutl/small-list.hxx1
-rw-r--r--libbutl/small-vector.hxx1
3 files changed, 3 insertions, 0 deletions
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<T, N>;
using allocator_type = small_allocator<T, N, buffer_type>;
using base_type = std::forward_list<T, allocator_type>;
+ 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<T, N>;
using allocator_type = small_allocator<T, N, buffer_type>;
using base_type = std::list<T, allocator_type>;
+ 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<T, N>;
using allocator_type = small_allocator<T, N>;
using base_type = std::vector<T, allocator_type>;
+ using typename base_type::value_type;
small_vector ()
: base_type (allocator_type (this))