Created on 2010-08-25.00:00:00 last changed 170 months ago
Proposed resolution:
Resolved by paper n3142.
[ 2010-10-24 Daniel adds: ]
Accepting n3142 would solve this issue.
[ Resolution proposed by ballot comment ]
Specify that std::is_constructible and std::is_convertible will return true only for public constructors/conversion functions.
Addresses DE-18
Several type traits require compiler support, e.g. std::is_constructible or std::is_convertible. Their current specification seems to imply, that the corresponding test expressions should be well-formed, even in absense of access:
class X { X(int){} }; constexpr bool test = std::is_constructible<X, int>::value;
The specification does not clarify the context of this test and because it already goes beyond normal language rules, it's hard to argue by means of normal language rules what the context and outcome of the test should be.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-11-18 14:01:09 | admin | set | status: nad editorial -> resolved |
2010-11-09 00:26:53 | admin | set | status: open -> nad editorial |
2010-10-25 12:08:24 | admin | set | messages: + msg5123 |
2010-10-25 12:08:24 | admin | set | messages: + msg5122 |
2010-10-24 23:23:18 | admin | set | messages: + msg5091 |
2010-08-25 00:00:00 | admin | create |