From b3dde2577b2dcd8d6421ca8800f5b10ea8e1a180 Mon Sep 17 00:00:00 2001 From: Kelbon Nik Date: Fri, 16 Feb 2024 22:52:36 +0400 Subject: [PATCH] ctor --- include/anyany/anyany.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/anyany/anyany.hpp b/include/anyany/anyany.hpp index c58b83c..c090aa7 100644 --- a/include/anyany/anyany.hpp +++ b/include/anyany/anyany.hpp @@ -1549,7 +1549,7 @@ struct basic_any : construct_interface, Me value_ptr = alloc.allocate(bytes); size_allocated = bytes; #if __cpp_exceptions - return scope_failure([this] { deallocate_memory(); }); + return scope_failure{[this] { deallocate_memory(); }}; #else return noexport::noop_guard{}; #endif