Skip to content

Conversation

@thirtytwobits
Copy link
Member

No description provided.

std::allocator_traits<std::remove_reference_t<UAlloc>>::is_always_equal::value)>
{};

// +----------------------------------------------------------------------+
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This never ended up getting used so it was dead code.

///
using size_type = std::size_t;

constexpr VariableLengthArrayBase(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to move this stuff down so it could use some of the functions defined below.

UAlloc&& rhs,
typename std::enable_if<std::allocator_traits<
std::remove_reference_t<UAlloc>>::propagate_on_container_move_assignment::value>::type* =
typename std::enable_if_t<
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to enable_if_t was recommended by sonar qube.

@sonarqubecloud
Copy link

@thirtytwobits thirtytwobits merged commit 3c6718a into main Jun 20, 2023
@thirtytwobits thirtytwobits deleted the feature/vla-move-w-alloc branch June 20, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants