From a5acaba537dab8e06be1197916acff86699aa5a3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Feb 2024 05:05:56 +0200 Subject: Add support for value type-specific subscript and iteration --- libbuild2/variable.txx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libbuild2/variable.txx') diff --git a/libbuild2/variable.txx b/libbuild2/variable.txx index 2c1265a..bc4132f 100644 --- a/libbuild2/variable.txx +++ b/libbuild2/variable.txx @@ -664,7 +664,9 @@ namespace build2 &vector_reverse, nullptr, // No cast (cast data_ directly). &vector_compare, - &default_empty> + &default_empty>, + nullptr, // Subscript. + nullptr // Iterate. }; // vector> value @@ -817,7 +819,9 @@ namespace build2 &pair_vector_reverse, nullptr, // No cast (cast data_ directly). &pair_vector_compare, - &default_empty>> + &default_empty>>, + nullptr, // Subscript. + nullptr // Iterate. }; // map value @@ -998,7 +1002,9 @@ namespace build2 &map_reverse, nullptr, // No cast (cast data_ directly). &map_compare, - &default_empty> + &default_empty>, + nullptr, // Subscript. + nullptr // Iterate. }; // variable_cache -- cgit v1.1