diff options
Diffstat (limited to 'build2/variable.ixx')
-rw-r--r-- | build2/variable.ixx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/build2/variable.ixx b/build2/variable.ixx index a4d7dc3..ee0f647 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -104,15 +104,8 @@ namespace build2 } template <typename T> - inline T& - cast (const lookup<value>& l) - { - return cast<T> (*l); - } - - template <typename T> inline const T& - cast (const lookup<const value>& l) + cast (const lookup& l) { return cast<T> (*l); } @@ -132,15 +125,8 @@ namespace build2 } template <typename T> - inline T* - cast_null (const lookup<value>& l) - { - return l ? &cast<T> (*l) : nullptr; - } - - template <typename T> inline const T* - cast_null (const lookup<const value>& l) + cast_null (const lookup& l) { return l ? &cast<T> (*l) : nullptr; } |