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

Build: Add dependency to Boost.JSON and make the Calibration module Boost1.81-compliant #1416

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

cbentejac
Copy link
Contributor

Description

Following the merge of #1331, a dependency to Boost.JSON has been added.

As a consequence, this PR:

  • adds boost-json to the list of packages to install with vcpkg;
  • makes the Calibration module compliant with Boost's version in vcpkg (currently 1.81), which fixes the C2440 errors that occurred ("initializer lists cannot directly be converted to boost::json::value").

@cbentejac cbentejac self-assigned this Apr 17, 2023
fabiencastan
fabiencastan previously approved these changes Apr 17, 2023
@fabiencastan fabiencastan added this to the 3.1.0 milestone Apr 17, 2023
Following the merge of #1331, the `boost-json` module is needed and thus
needs to be installed along all the other Boost modules.
Using std::vectors directly in the constructor of boost::json::value
raises C2440 errors with Boost 1.81, as initializer lists cannot directly
be converted to boost::json::value.

The conversion needs to be explicit.
@mugulmd mugulmd merged commit 172004c into develop Apr 20, 2023
@mugulmd mugulmd deleted the build/boostJson branch April 20, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants