Skip to content

fixing #31, adding move with new alloc ctor - #38

Merged
thirtytwobits merged 2 commits into
mainfrom
feature/vla-move-w-alloc
Jun 20, 2023
Merged

thirtytwobits merged 2 commits into
mainfrom
feature/vla-move-w-alloc

Conversation

@thirtytwobits

Copy link
Copy Markdown
Member

No description provided.

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

// +----------------------------------------------------------------------+

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

98.5% 98.5% Coverage
0.0% 0.0% Duplication

Comment thread include/cetl/variable_length_array.hpp
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants