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

json2code: convert boost integer_range to std iota_view #2549

Closed
wants to merge 1 commit into from

Conversation

avikivity
Copy link
Member

Reduce dependencies on boost.

json2code converts a Swagger json API definition to C++ code. Remove a use of boost integer_range by converting it to the equivalent iota_view. Some notes:

  • we must return auto, otherwise concept evaluation on the class being defined fail
  • we must define an operator-(), also to satisfy concept evaluation for iota_view.

Reduce dependencies on boost.

json2code converts a Swagger json API definition to C++ code. Remove
a use of boost integer_range by converting it to the equivalent
iota_view. Some notes:

 - we must return `auto`, otherwise concept evaluation on the class
   being defined fail
 - we must define an operator-(), also to satisfy concept evaluation
   for iota_view.
Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

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

lgtm

@xemul xemul closed this in 72c7ac5 Nov 26, 2024
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