-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[core] Remove backports of C++17 features #13993
[core] Remove backports of C++17 features #13993
Conversation
std::string_view
backport
Thank you for cleaning up that mess! |
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.
Excellent, thanks for doing this! See comments, please! And let's make sure that the CI passes before merging :-)
@@ -1,591 +0,0 @@ | |||
// -*- C++ -*- |
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.
GitHub tells me that this file got emptied but isn't deleted. Is that intentional? Or a bug in GitHub's interface?
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.
@@ -1,824 +0,0 @@ | |||
// -*- C++ -*- |
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.
Same here: empty but file remains?
@@ -309,15 +309,8 @@ friend std::strong_ordering operator<=>(const TString &s1, const TString &s2) { | |||
|
|||
// Type conversion | |||
operator const char*() const { return GetPointer(); } | |||
#if (__cplusplus >= 201700L) && !defined(_MSC_VER) && (!defined(__clang_major__) || __clang_major__ > 5) |
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.
How certain are we that Windows doesn't need this anymore? I guess the CI will tell...
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.
Yes :)
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.
Okay, it's still needed. I don't like that it's there, but that would be another story
#ifdef R__HAS_STD_STRING_VIEW | ||
#ifndef R__CUDA_HAS_STD_STRING_VIEW | ||
#undef R__HAS_STD_STRING_VIEW | ||
#define R__HAS_STD_EXPERIMENTAL_STRING_VIEW |
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.
Isn't anything using these preprocessor defines?
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.
My gut feeling here is "pretty sure", but maybe @lmoneta can also comment
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.
I think these are not needed anymore. There were there to fix conflict happening in past Cuda version when including string_view backport
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.
Do we have any CUDA build in the CI?
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.
@lmoneta ?
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.
No, we don't have it!
bb92818
to
5e864e5
Compare
35b6a40
to
671be60
Compare
Thanks @Axel-Naumann for the green light! FYI, I have added one more commit that replaces the usage of the Also, can you please approve the sister PR in roottest to fix the CI failures? Thanks! |
Oh, and the Windows 10 failures seem unrelated to this PR, right @bellenot? In any case, this PR should not be merged before we see any green Windows build |
@guitargeek the only failure I see (on Jenkins) was due to |
Build failed on windows10/default. Errors:
|
671be60
to
e74a3c2
Compare
Starting build on |
Build failed on windows10/default. Errors:
|
e74a3c2
to
280830a
Compare
Starting build on |
Build failed on windows10/default. Errors:
|
Remove the `std::string_view` backport, because it's not necessary anymore since the minimum C++ standard is now C++17.
Since C++17 is now the minimum standard, we can use `<string_view>`.
280830a
to
4f5cbf8
Compare
Starting build on |
Windows is green now |
Build failed on mac12arm/cxx20. Errors:
|
Build failed on ROOT-ubuntu2004/python3. Errors:
|
As these operators are not needed anymore we can get rid of them. Related to issue root-project#13993 and root-project#14244
As these operators are not needed anymore we can get rid of them. Related to issue root-project#13993 and root-project#14244
As these operators are not needed anymore we can get rid of them. Related to issue root-project#13993 and root-project#14244
As these operators are not needed anymore we can get rid of them. Related to issue root-project#13993 and root-project#14244
Remove the
std::string_view
backport and others, because it's not necessary anymore since the minimum C++ standard is now C++17.