From c76ff457079bf5901a6bb55377c14aeee856a354 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Mar 2016 16:02:06 +0200 Subject: Cleanup variable typing --- build2/variable | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/variable') diff --git a/build2/variable b/build2/variable index 1a52566..579339e 100644 --- a/build2/variable +++ b/build2/variable @@ -630,6 +630,13 @@ namespace build2 using variable_pool_base = std::unordered_set; struct variable_pool: private variable_pool_base { + template + const variable& + find (string name, char p = '\0') + { + return find (name, nullptr, &value_traits::value_type, p); + } + const variable& find (string name, const build2::value_type* t = nullptr, char p = '\0') { -- cgit v1.1