diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-11 14:38:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-11 14:38:00 +0200 |
commit | a60da308bfcc003fd07d2b7d848ccb8d166e472a (patch) | |
tree | 0616ec5db6a3f6dec5d90194c0adca63ad4e8cdb /build2/config/utility | |
parent | 5417243b54862d0e5f0214dde2b84eb90a100bf2 (diff) |
Redo config inheritance logic
Diffstat (limited to 'build2/config/utility')
-rw-r--r-- | build2/config/utility | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/build2/config/utility b/build2/config/utility index 451df30..8a93c09 100644 --- a/build2/config/utility +++ b/build2/config/utility @@ -21,12 +21,13 @@ namespace build2 // // If override is true and the variable doesn't come from this root scope // or from the command line (i.e., it is inherited from the amalgamtion), - // then its value is "overridden" for this root scope. + // then its value is "overridden" to the default value on this root scope. // // Return the reference to the value as well as the indication of whether - // the value is "new", that is, it was either set (including override) or - // it came from the command line and was not inherited. This is usually - // used to test the new value. + // the value is "new", that is, it was set to the default value (inherited + // or not, including overrides). We also treat command line overrides + // (inherited or not) as new. This flag is usually used to test that the + // new value is valid, etc. // template <typename T> pair<reference_wrapper<const value>, bool> |