From b439803cc5e09188c7b523333f6b71de3ba57dbf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 16 Jul 2016 10:51:35 +0200 Subject: Add support for prepend/append in target type/pattern-specific vars Semantically, these are similar to variable overrides and are essentially treated as "templates" that are applied on lookup to the "stem" value that is specific to the target type/name. For example: x = [string] a file{f*}: x =+ b sub/: { file{*}: x += c print $(file{foo}:x) # abc print $(file{bar}:x) # ac } --- build2/utility | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build2/utility') diff --git a/build2/utility b/build2/utility index a5c4407..29dca77 100644 --- a/build2/utility +++ b/build2/utility @@ -5,6 +5,7 @@ #ifndef BUILD2_UTILITY #define BUILD2_UTILITY +#include // make_tuple() #include // make_shared() #include // to_string() #include // move(), forward(), declval(), make_pair() @@ -25,6 +26,7 @@ namespace build2 using std::declval; using std::make_pair; + using std::make_tuple; using std::make_shared; using std::make_move_iterator; using std::to_string; -- cgit v1.1