-
Notifications
You must be signed in to change notification settings - Fork 82
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
[FIX] Move remove_cvref_t into std namespace #2079
[FIX] Move remove_cvref_t into std namespace #2079
Conversation
Hint for failing travis (click me):
#if feature_test_macro
template <typename t>
struct remove_cvref
...
#endif You can look up specific macros here: https://en.cppreference.com/w/cpp/utility/feature_test I think you can do the same with the |
This should go against release; Can you split the single commit into three commits?
|
Codecov Report
@@ Coverage Diff @@
## release-3.0.2 #2079 +/- ##
==============================================
Coverage 97.82% 97.82%
==============================================
Files 264 264
Lines 9947 9947
==============================================
Hits 9731 9731
Misses 216 216
Continue to review full report at Codecov.
|
d571e68
to
56a0ab7
Compare
56a0ab7
to
43dfd4d
Compare
Thank a lot both for the suggestions and help! |
template <typename t> | ||
using remove_cvref_t = typename remove_cvref<t>::type; |
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.
This fails on macOS GCC9, because std::remove_cvref_t
is already defined.
Unfortunately, you can't put requires
on typedefs (you can, but they are ignored)....
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.
This should also fail on gcc9 linux...
Also, in line 21: #ifndef __cpp_lib_type_identity
should go down to line 56
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.
@marehr That means we need a workaround macro? __cpp_lib_remove_cvref
not being defined will be fixed in 9.4
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.
@marehr That means we need a workaround macro?
__cpp_lib_remove_cvref
not being defined will be fixed in 9.4
Do you know the bug ticket?
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.
Not really, this is the patch http://gcc.1065356.n8.nabble.com/committed-0-8-libstdc-Add-update-fix-feature-test-macros-td1682441.html
This is where I found it (remove_cvref has a note that says since 9.4 https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html)
@@ -0,0 +1,354 @@ | |||
// ----------------------------------------------------------------------------------------------------- |
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.
Rebase error?
@wvandertoorn Is this still a draft? |
43dfd4d
to
32a5fd8
Compare
fff7164
to
eab44f4
Compare
@eseiler Can you have a look? I think I got it fixed :) |
c382781
to
ffa1a27
Compare
ffa1a27
to
4e1d3fb
Compare
4e1d3fb
to
6441c2a
Compare
Fixes seqan/product_backlog#134