aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-05-30 13:49:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-05-30 13:49:04 +0200
commite588fd9ba279c7e5d8c94b2b3fbcb55d6197f5c4 (patch)
treec134541d9bfc68207d2c519d9bfbc77d631ba18b
parente1c66b9704ca9557031f865cc194a96bcb85a030 (diff)
Fix bug
-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