Skip to content

Commit

Permalink
minor DeferredFormatCodec, DirectFormatCodec improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Feb 16, 2025
1 parent e2b759b commit feb454d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/quill/DeferredFormatCodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ struct DeferredFormatCodec
else
{
auto aligned_ptr = align_pointer(buffer, alignof(T));
auto* tmp = reinterpret_cast<T*>(aligned_ptr);
auto* tmp = std::launder(reinterpret_cast<T*>(aligned_ptr));

// Take a copy
static_assert(is_copy_constructible<T>::value, "T is not copy-constructible!");
Expand Down

0 comments on commit feb454d

Please sign in to comment.