Skip to content

Commit

Permalink
Avoid clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 5, 2024
1 parent 530fb2f commit e88c8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tao/pq/internal/resize_uninitialized.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace tao::pq::internal
static_assert( sizeof( std::vector< std::byte > ) == sizeof( std::vector< no_init_byte > ) );
static_assert( alignof( std::vector< std::byte > ) == alignof( std::vector< no_init_byte > ) );

void resize_uninitialized_proxy( std::vector< std::byte >& v, const std::size_t n ) noexcept
[[maybe_unused]] void resize_uninitialized_proxy( std::vector< std::byte >& v, const std::size_t n ) noexcept
{
// undefined behaviour?
reinterpret_cast< std::vector< no_init_byte >& >( v ).resize( n );
Expand Down

0 comments on commit e88c8bb

Please sign in to comment.