commit | 2586482bf27bcd747c966c6d0293bd88b6a42cd9 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Fri May 19 15:14:41 2023 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Fri May 19 15:14:41 2023 -0500 |
tree | 92a3ee21c403dcd560f224316c3a2ff419bbe155 | |
parent | 69373482529f039de0cfccb3d01fbed562595c7e [diff] |
async: scope: constructor fix to make clang happy Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I339a65278c2a540d1235db436b95b80ff222d932
diff --git a/include/sdbusplus/async/scope.hpp b/include/sdbusplus/async/scope.hpp index 06a30d7..8975194 100644 --- a/include/sdbusplus/async/scope.hpp +++ b/include/sdbusplus/async/scope.hpp
@@ -229,6 +229,8 @@ { return ((Fn&&)fn)(); } + + explicit in_place_construct(Fn&& fn) : fn(std::move(fn)){}; }; } // namespace scope_ns