-
Notifications
You must be signed in to change notification settings - Fork 769
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
Less redundant 'typename' in type-id-only contexts #5212
Conversation
And that's exactly why LWG haven't expressed any desire to rush into this. One of the major implementations hasn't even implemented the feature yet. |
GCC and MSVC accept this. Clang's implementation under review has test cases for this case https://reviews.llvm.org/D53847: dynamic_cast<T::tclass *>(new B)
const_cast<const T::type *>(Ptr) I think I understand what does "smallest enclosing" mean here now; http://wg21.link/p1787 said this instead:
|
@@ -6548,13 +6548,13 @@ | |||
\begin{codeblock} | |||
template<class InputIterator> | |||
using @\placeholder{iter-value-type}@ = | |||
typename iterator_traits<InputIterator>::value_type; // \expos | |||
iterator_traits<InputIterator>::value_type; // \expos | |||
template<class InputIterator> | |||
using @\placeholder{iter-key-type}@ = remove_const_t< | |||
typename iterator_traits<InputIterator>::value_type::first_type>; // \expos |
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.
http://wg21.link/p2165r3 will get rid of the other typename
s in this code block.
See also https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2150r0.html |
Could you please split this up into smaller commits or PRs? Please reopen if and when you want to resume this. |
static_cast
,const_cast
,reinterpret_cast
, ordynamic_cast
clearedI'm not very sure about thestatic_cast<T::type*>
ones.Closes: #3637