diff options
-rw-r--r-- | build2/config/utility.cxx | 2 | ||||
-rw-r--r-- | build2/file.cxx | 2 | ||||
-rw-r--r-- | build2/variable | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/build2/config/utility.cxx b/build2/config/utility.cxx index c617690..d27e1ff 100644 --- a/build2/config/utility.cxx +++ b/build2/config/utility.cxx @@ -37,6 +37,8 @@ namespace build2 // a warning issued by the config module about global/root scope // value mismatch. // + // @@ CMDVAR + // value& v (const_cast<value&> (*l)); if (v && !v.empty ()) diff --git a/build2/file.cxx b/build2/file.cxx index a49926b..fb4f31f 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -837,6 +837,8 @@ namespace build2 // a warning issued by the config module about global/root scope // value mismatch. Not very clean. // + // @@ CMDVAR + // dir_path& d (as<dir_path> (const_cast<value&> (*l))); if (d != out_root) d = out_root; diff --git a/build2/variable b/build2/variable index 579339e..15df6d6 100644 --- a/build2/variable +++ b/build2/variable @@ -214,8 +214,8 @@ namespace build2 template <typename T> typename value_traits<T>::type as (value&); template <typename T> typename value_traits<T>::const_type as (const value&); - // "Assign" simple value type to the value stored in name. Return false - // if the value is not valid for this type. + // Try to "assign" a simple value type to the value stored in name. Return + // false if the value is not valid for this type. // template <typename T> bool assign (name&); @@ -301,7 +301,7 @@ namespace build2 static const build2::value_type value_type; }; - extern const value_type* string_type; + extern const value_type* string_type; //@@ Get rid (and others). // dir_path // |