diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-29 13:17:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-29 13:17:30 +0200 |
commit | 6dbf3bbd2efa963859156826a25fc639c6c52ce5 (patch) | |
tree | 20cfd40a9b9649578a88b5eff7415a56eb14001d /build/variable | |
parent | c087efe145a75087acd646abe3258dad4aef4e2a (diff) |
Add support for setting target-specific variables from buildfiles
Diffstat (limited to 'build/variable')
-rw-r--r-- | build/variable | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build/variable b/build/variable index 0ccd242..c353246 100644 --- a/build/variable +++ b/build/variable @@ -173,8 +173,13 @@ namespace build as<const value&> () const {return **p;} template <> - list_value& value_proxy:: - as<list_value&> () const; + inline list_value& value_proxy:: + as<list_value&> () const + { + list_value* lv (dynamic_cast<list_value*> (p->get ())); + assert (lv != nullptr); + return *lv; + } template <> inline const list_value& value_proxy:: |