diff options
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:: |