Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Align template param; unit test it. #106

Merged
merged 4 commits into from Mar 20, 2024
Merged

Conversation

serges147
Copy link
Contributor

Also:

  • Fixed sizeofalignof.
  • Added TestMovableOnly helper, and assign operators.
  • Reduced code duplication in tests (TestCopyable & TestCopyableAndMovable).

Also:
- Fixed `sizeof` → `alignof`.
- Added `TestMovableOnly` helper, and assign operators.
- Reduced code duplication in tests (`TestCopyable` & `TestCopyableAndMovable`).
@serges147 serges147 self-assigned this Mar 20, 2024
@serges147 serges147 marked this pull request as draft March 20, 2024 15:14
@serges147 serges147 marked this pull request as ready for review March 20, 2024 15:16
template <std::size_t Footprint,
bool Copyable = true,
bool Movable = Copyable,
std::size_t Align = alignof(std::max_align_t)>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
std::size_t Align = alignof(std::max_align_t)>
std::size_t Alignment= alignof(std::max_align_t)>

Copy link

sonarcloud bot commented Mar 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@serges147 serges147 merged commit c7e8f29 into issue/83_any Mar 20, 2024
32 checks passed
@serges147 serges147 deleted the sshirokov/83_any branch March 20, 2024 16:24
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.

None yet

2 participants