-
Notifications
You must be signed in to change notification settings - Fork 111
[WIP] add structured binding forward declaration #127
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
Conversation
83e4819
to
15eb309
Compare
@@ -69,6 +69,7 @@ corrade_add_test(ContainersStringViewTest StringViewTest.cpp LIBRARIES CorradeUt | |||
corrade_add_test(ContainersStringViewStlTest StringViewStlTest.cpp) | |||
corrade_add_test(ContainersTripleTest TripleTest.cpp) | |||
corrade_add_test(ContainersTripleStlTest TripleStlTest.cpp) | |||
corrade_add_test(ContainersTupleStlTest TupleStlTest.cpp) |
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.
To make the tests on ancient compilers stop failing, move this inside the C++17 if()
below, same place where you set the C++17 standard
3697bc1
to
f2d56f7
Compare
Codecov ReportBase: 97.96% // Head: 97.96% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #127 +/- ##
=======================================
Coverage 97.96% 97.96%
=======================================
Files 135 135
Lines 10940 10943 +3
=======================================
+ Hits 10717 10720 +3
Misses 223 223
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Since I'm deep in the reviews already, let's unblock this too, finally (it's from February? wow 😅). As the change now boils down to What's left is that I assume you'd want to use C++17
For completeness there's also It seems like a lot of new test files, but my assumption is that there will be more and more C++14/17/20-specific features (such as your constexpr additions), and the new test files will be reused for those as well. The In case of Magnum I assume you'd want |
For types without an already-existing |
b927aa3
to
c6d8f93
Compare
c6d8f93
to
b771fe5
Compare
So, not going to do the specializations for other containers either? I'll convert that to an issue, then, in case it eventually becomes useful for someone else. |
I still plan on doing it for Pair and Triple at least, but have more pressing issues at this time. |
This commit adds
std::tuple_element
andstd::tuple_size
forward declarations to avoid slurping in thousands of lines worth of STL headers. For unsupported STL versions,<array>
is included instead.