From 0d5234f4aefd3cc5b5948cc1b9dd009e50046f5e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 17 Aug 2015 11:18:10 +0200 Subject: Tighten variable_map interface --- build/test/rule.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build/test') diff --git a/build/test/rule.cxx b/build/test/rule.cxx index 30de93c..10b628d 100644 --- a/build/test/rule.cxx +++ b/build/test/rule.cxx @@ -33,12 +33,14 @@ namespace build // @@ This logic doesn't take into account target type/pattern- // specific variables. // + // @@ Perhaps a find_any()? + // for (auto p (t.vars.find_namespace ("test")); p.first != p.second; ++p.first) { const variable& var (p.first->first); - value_ptr& val (p.first->second); + const value_ptr& val (p.first->second); // If we have test, then always use that. // -- cgit v1.1