m***@gmail.com
2018-11-14 20:32:42 UTC
Consider
template<class T>
struct A
{
A(T) {}
};
template<class T>
struct B : A<T>
{
B(T t, int i)
: A(t) //< nope
{}
};
int main()
{
A c(12); //< yep
}
This case is not considered in p1021
<http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p1021r1.html>. Any
reason what this might be? An omission, a technical issue?
Because sooner or later people will wonder why it works in one context and
not in other.
template<class T>
struct A
{
A(T) {}
};
template<class T>
struct B : A<T>
{
B(T t, int i)
: A(t) //< nope
{}
};
int main()
{
A c(12); //< yep
}
This case is not considered in p1021
<http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p1021r1.html>. Any
reason what this might be? An omission, a technical issue?
Because sooner or later people will wonder why it works in one context and
not in other.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/16f99f8f-6596-4450-98f8-1bd7332cb21c%40isocpp.org.
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+***@isocpp.org.
To post to this group, send email to std-***@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/16f99f8f-6596-4450-98f8-1bd7332cb21c%40isocpp.org.