-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove include <ranges> #4788
Remove include <ranges> #4788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Works for me using Xcode 13.4.1.
Having slept on this, the current solution works for me. However, I'm having some pause about introducing a custom
That would remove the need for a custom |
It's generic concept, and so is this function. I consider |
I'm approving this, but in my opinion the concept doesn't add much. I probably prefer the code without the concept. The concept isn't used to help with an overload, and the expected interface of |
OK, I think appropriate compromise is to put a comment why this code is the way it is and why we need it temporarily i.e. because we do not yet have |
ca53ef8
to
5b425a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@intelliot this is ready to merge |
Remove dependency on `<ranges>` header, since it is not implemented by all compilers which we want to support. This code change only affects unit tests. Resolve XRPLF#4787
High Level Overview of Change
Remove dependency on
<ranges>
header, since it is not implemented by all compilers which we want to support. Resolves #4787Context of Change
We only use ranges for
std::ranges::begin
andstd::ranges::end
, and for a matching concept. This can be trivially replaced withstd::begin
,std::end
and an equivalent, trivial to write, concept.The code change in question only affects unit tests.
Type of Change
.gitignore
, formatting, dropping support for older tooling)API Impact
libxrpl
change (any change that may affectlibxrpl
or dependents oflibxrpl
)