aboutsummaryrefslogtreecommitdiff
path: root/build2/variable.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-31 10:59:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-31 10:59:45 +0200
commit7253ffee27f6cae34e63a72b2d3d10db10571ecc (patch)
treec86b321ad4d2bcb05eda451ad3cae5ac8429cabf /build2/variable.ixx
parent6417a4e6af2b7732ec0da6af24f1a56f7cdada3f (diff)
Clean up variable lookup interfaces
Diffstat (limited to 'build2/variable.ixx')
-rw-r--r--build2/variable.ixx18
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;
}