Skip to content

CXX-3163 Remove workarounds for core::optional<T> #1269

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

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

eramongodb
Copy link
Contributor

Resolves CXX-3163. Verified by this patch.

Following #1257, workarounds that were required for mnmlstc/core optional<T> compatibility are no longer required.

These former workarounds consist of improper initialization of underlying objects affecting the behavior of the type (fixed in mnmlstc/core@776eb3e but never released). The mongocxx::v_noabi::options::change_stream class's _start_at_operation_time data member (and related accessors) are most notably affected by this issue and the primary change in this PR. Related workarounds in test code are also replaced.

@eramongodb eramongodb requested a review from kevinAlbs November 12, 2024 19:48
@eramongodb eramongodb self-assigned this Nov 12, 2024
CHANGELOG.md Outdated
## Changed

- CMake option `ENABLE_TESTS` is now `OFF` by default.
- Set `ENABLE_TEST=ON` to re-enable building test targets.
- Set `BUILD_TESTING=ON` to include test targets in the "all" target when `ENABLE_TESTS=ON` (since 3.9.0, `OFF` by default).
- Layout of `mongocxx::v_noabi::options::change_stream` to support optional `start_at_operation_time` accessors.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- Layout of `mongocxx::v_noabi::options::change_stream` to support optional `start_at_operation_time` accessors.
- Layout of `mongocxx::v_noabi::options::change_stream` to support optional `start_at_operation_time` accessor.

@eramongodb eramongodb merged commit 2bfd2a9 into mongodb:master Nov 12, 2024
1 check was pending
@eramongodb eramongodb deleted the cxx-3163 branch November 12, 2024 20:26
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