Skip to content

Commit

Permalink
Fixed C++20 warning implicit capture of this in lambda (#766)
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Rodrigues <guilherme.rodrigues@ait.ac.at>
  • Loading branch information
AiVerisimilitude authored Sep 6, 2023
1 parent f47565c commit f7951bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ class MessageIntrospectionTest : public SharedLibraryTest
MakeTypeErasedMessage() const
{
std::allocator<MessageT> allocator;
std::function<void(void *)> type_erased_message_deleter = [ = ](void * ptr) mutable {
std::function<void(void *)> type_erased_message_deleter =
[allocator, this](void * ptr) mutable {
finalize_message(ptr, message_descriptor_);
allocator.deallocate(reinterpret_cast<MessageT *>(ptr), 1);
};
Expand Down

0 comments on commit f7951bb

Please sign in to comment.