From b37f1aa6398065be806e6605a023189685669885 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Feb 2017 03:55:15 +0200 Subject: Implement parallel match --- build2/prerequisite.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/prerequisite.cxx') diff --git a/build2/prerequisite.cxx b/build2/prerequisite.cxx index 47da950..b1f3cb2 100644 --- a/build2/prerequisite.cxx +++ b/build2/prerequisite.cxx @@ -57,7 +57,7 @@ namespace build2 } prerequisite:: - prerequisite (target_type& t) + prerequisite (const target_type& t) : proj (nullopt), type (t.type ()), dir (t.dir), @@ -72,7 +72,7 @@ namespace build2 bool prerequisite:: belongs (const target_type& t) const { - const auto& p (t.prerequisites); + const auto& p (t.prerequisites ()); return !(p.empty () || this < &p.front () || this > &p.back ()); } } -- cgit v1.1