aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scope.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-01-11 11:02:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-01-11 11:02:16 +0200
commit1d925696ac7eb8d7adb4d70b3f5afb010d745931 (patch)
tree71f5614f431b4097a48ac71211b1f5e6740de765 /libbuild2/scope.hxx
parent63ea58a2889cd54f32749abf2d10f9a5ea5640ad (diff)
Add ability to alias target type from another project
The syntax is: define <type> = <scope>/<type>
Diffstat (limited to 'libbuild2/scope.hxx')
-rw-r--r--libbuild2/scope.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx
index e53a7ca..50347b2 100644
--- a/libbuild2/scope.hxx
+++ b/libbuild2/scope.hxx
@@ -320,7 +320,7 @@ namespace build2
const target_type&
insert_target_type (const target_type& tt)
{
- return root_extra->target_types.insert (tt);
+ return root_extra->target_types.insert (tt).first;
}
template <typename T>