File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -315,8 +315,8 @@ class [[nodiscard]] scope_guard
315315 }
316316
317317private:
318- [[msvc::no_unique_address]] ScopeExitFunc m_exit_func;
319- [[msvc::no_unique_address]] InvokeChecker m_invoke_checker;
318+ ScopeExitFunc m_exit_func;
319+ InvokeChecker m_invoke_checker;
320320
321321 template <typename T>
322322 static constexpr bool check_can_invoke (const T& obj) // noexcept?? how??
@@ -339,13 +339,13 @@ class [[nodiscard]] scope_guard
339339// ==================================================================================================
340340
341341template <std::invocable ExitFunc, scope_invoke_checker InvokeChecker>
342- scope_guard (ExitFunc, InvokeChecker) -> scope_guard<ExitFunc, InvokeChecker>;
342+ scope_guard (ExitFunc&& , InvokeChecker&& ) -> scope_guard<std:: decay_t < ExitFunc>, std:: decay_t < InvokeChecker> >;
343343
344344template <std::invocable ExitFunc, typename InvokeChecker>
345345scope_guard (ExitFunc) -> scope_guard<ExitFunc, InvokeChecker>;
346346
347347template <std::invocable ExitFunc>
348- scope_guard (ExitFunc) -> scope_guard<ExitFunc>;
348+ scope_guard (ExitFunc&& ) -> scope_guard<std:: decay_t < ExitFunc>, ExecuteAlways >;
349349
350350
351351// ==================================================================================================
You can’t perform that action at this time.
0 commit comments