Title
constructible/convertible traits and access control
Status
resolved
Section
[meta]
Submitter
DIN

Created on 2010-08-25.00:00:00 last changed 171 months ago

Messages

Date: 2011-05-09.23:20:35

Proposed resolution:

Resolved by paper n3142.

Date: 2010-10-24.00:00:00

[ 2010-10-24 Daniel adds: ]

Accepting n3142 would solve this issue.

Date: 2010-10-25.12:08:24

[ Resolution proposed by ballot comment ]

Specify that std::is_constructible and std::is_convertible will return true only for public constructors/conversion functions.

Date: 2010-10-24.10:50:39

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:09adminsetstatus: nad editorial -> resolved
2010-11-09 00:26:53adminsetstatus: open -> nad editorial
2010-10-25 12:08:24adminsetmessages: + msg5123
2010-10-25 12:08:24adminsetmessages: + msg5122
2010-10-24 23:23:18adminsetmessages: + msg5091
2010-08-25 00:00:00admincreate