Skip to content

Commit

Permalink
ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Feb 16, 2024
1 parent 0377d02 commit b3dde25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/anyany/anyany.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ struct basic_any : construct_interface<basic_any<Alloc, SooSize, Methods...>, 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
Expand Down

0 comments on commit b3dde25

Please sign in to comment.