summaryrefslogtreecommitdiffstats
path: root/build2/config/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-11 10:14:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-12 10:58:19 +0200
commit9bf93c1ab73ee3cd2b763285fc5fc5456e972854 (patch)
tree0357c36e12fe2137ef6c9bd228e9d69bb2489a02 /build2/config/utility.txx
parent33ed305eac57bff406fa3f672ba8acc4941e8f13 (diff)
downloadbuild2-9bf93c1ab73ee3cd2b763285fc5fc5456e972854.tar.gz
build2-9bf93c1ab73ee3cd2b763285fc5fc5456e972854.tar.xz
build2-9bf93c1ab73ee3cd2b763285fc5fc5456e972854.zip
Implement support for narrowing down tests (config.test)
Diffstat (limited to 'build2/config/utility.txx')
-rw-r--r--build2/config/utility.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/config/utility.txx b/build2/config/utility.txx
index b6859d0f..14344060 100644
--- a/build2/config/utility.txx
+++ b/build2/config/utility.txx
@@ -10,7 +10,7 @@ namespace build2
namespace config
{
template <typename T>
- pair<reference_wrapper<const value>, bool>
+ pair<lookup, bool>
required (scope& root,
const variable& var,
const T& def_val,
@@ -60,7 +60,7 @@ namespace build2
}
}
- return pair<reference_wrapper<const value>, bool> (*l, n);
+ return pair<lookup, bool> (l, n);
}
}
}