aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbuild2/dyndep.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/dyndep.hxx b/libbuild2/dyndep.hxx
index 1de2858..4081d19 100644
--- a/libbuild2/dyndep.hxx
+++ b/libbuild2/dyndep.hxx
@@ -255,8 +255,8 @@ namespace build2
path f,
const function<group_filter_func>& filter = nullptr)
{
- return inject_group_member (
- a, bs, g, move (f), T::static_type, filter).template as<T> ();
+ auto p (inject_group_member (a, bs, g, move (f), T::static_type, filter));
+ return pair<const T&, bool> (p.first.template as<T> (), p.second);
}
// As above but the target type is determined using the map_extension