Skip to content

Fix for issue/141: cetl::get_if should should match only on a unbounded_variant - #185

Merged
serges147 merged 9 commits into
mainfrom
issue/141_ub_get
Apr 15, 2025
Merged

serges147 merged 9 commits into
mainfrom
issue/141_ub_get

Conversation

@serges147

Copy link
Copy Markdown
Contributor

No description provided.

@serges147 serges147 self-assigned this Apr 10, 2025
Comment thread include/cetl/cetl.hpp
Comment thread include/cetl/cetl.hpp
Comment thread include/cetl/unbounded_variant.hpp
pavel-kirienko
pavel-kirienko previously approved these changes Apr 11, 2025
@serges147
serges147 requested a review from Copilot April 14, 2025 08:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (2)

cetlvast/suites/unittest/test_unbounded_variant.cpp:461

  • The expected value for 'src' was changed from '1 + 10' to '1'; please confirm that this behavior change is intentional.
EXPECT_THAT(get<test>(src).value_, 1);

include/cetl/cetl.hpp:132

  • The updated conditional for CETL_ENABLE_DEBUG_ASSERT now requires it to be truthy; please ensure that this change aligns with the intended behavior for debug assertions.
#if defined CETL_ENABLE_DEBUG_ASSERT && CETL_ENABLE_DEBUG_ASSERT

Comment thread cetlvast/suites/unittest/test_unbounded_variant.cpp
@serges147
serges147 requested a review from Copilot April 14, 2025 08:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

@serges147
serges147 marked this pull request as ready for review April 14, 2025 08:18
@serges147
serges147 requested a review from thirtytwobits April 14, 2025 08:33
@sonarqubecloud

Copy link
Copy Markdown

@serges147
serges147 merged commit b02ce3f into main Apr 15, 2025
@serges147
serges147 deleted the issue/141_ub_get branch April 15, 2025 19:54
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.

3 participants