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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of simdjson::simdjson_result<T> #1315

Merged
merged 1 commit into from Jan 26, 2021

Conversation

dominiklohmann
Copy link
Member

馃摂 Description

Before simdjson 0.8.0, simdjson::simdjson_result<T> inherited from std::pair<T, Error> publicly, which allowed us to use it in a possibly unintended way. The type no longer decomposes into structured bindings, so we now use .error() and .value() respectively where appropriate.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

File-by-file.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Jan 26, 2021
@dominiklohmann dominiklohmann requested a review from a team January 26, 2021 10:27
@dominiklohmann dominiklohmann force-pushed the topic/simdjson-0.8.0-result-usage branch from d7ebb77 to 8e83870 Compare January 26, 2021 10:27
Before simdjson 0.8.0, `simdjson::simdjson_result<T>` inherited from
`std::pair<T, Error>` publicly, which allowed us to use it in a possibly
unintended way. The type no longer decomposes into structured bindings,
so we now use `.error()` and `.value()` respectively where appropriate.
Copy link
Member

@tobim tobim left a comment

Choose a reason for hiding this comment

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

CI will verify that v0.7 still works.

@dominiklohmann dominiklohmann merged commit e345ee4 into master Jan 26, 2021
@dominiklohmann dominiklohmann deleted the topic/simdjson-0.8.0-result-usage branch January 26, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
2 participants