From e3e597180487328a54721e2afb95e33ed853d586 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 1 Feb 2017 16:36:24 +0200 Subject: Pass const scope& where modification should not happen --- build2/target-type | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'build2/target-type') diff --git a/build2/target-type b/build2/target-type index cddb9e2..ab21aa0 100644 --- a/build2/target-type +++ b/build2/target-type @@ -40,11 +40,21 @@ namespace build2 { const char* name; const target_type* base; - target* (*factory) ( - const target_type&, dir_path, dir_path, string, optional); - optional (*extension) (const target_key&, scope&, bool search); + + target* (*factory) (const target_type&, + dir_path, + dir_path, + string, + optional); + + optional (*extension) (const target_key&, + const scope&, + bool search); + void (*print) (ostream&, const target_key&); + target* (*search) (const prerequisite_key&); + bool see_through; // A group with the default "see through" semantics. template -- cgit v1.1