diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-19 04:39:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-19 04:39:45 +0200 |
commit | 457f65414031f45174f3c35230a0c0e1de88b51a (patch) | |
tree | b13e1e2e2291e65d2b22058706909d8df0cc59c2 /libbuild2/scope.hxx | |
parent | 950a84c337f317388cf39a3820125e049c598b8d (diff) |
Switch to using std::function for target::data_pad
Diffstat (limited to 'libbuild2/scope.hxx')
-rw-r--r-- | libbuild2/scope.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index 9dc2be6..f21fe01 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -566,6 +566,13 @@ namespace build2 template <typename T> T* + find_module (const string& name) + { + return root_extra->modules.find_module<T> (name); + } + + template <typename T> + const T* find_module (const string& name) const { return root_extra->modules.find_module<T> (name); |