Title
Access control and deleted implicitly-declared special member functions
Status
nad
Section
11.4.4 [special]
Submitter
US

Created on 2009-03-03.00:00:00 last changed 187 months ago

Messages

Date: 2009-07-15.00:00:00

Rationale (July, 2009):

The current treatment is sufficiently useful to warrant the inconsistency with the other handling of access control. In particular, it enables such cases to be detected by SFINAE.

Date: 2022-11-20.07:54:16
N2800 comment USĀ 50

An implicitly-declared special member function is defined as deleted (11.4.5 [class.ctor] paragraph 5, 11.4.7 [class.dtor] paragraph 3, 11.4.5.3 [class.copy.ctor] paragraphs 5 and 10) if any of the corresponding functions it would call from base classes is inaccessible. This is inconsistent with the treatment of access control in overload resolution and template argument deduction, where accessibility is ignored (but may result in an ill-formed program). This should be made consistent.

History
Date User Action Args
2009-08-03 00:00:00adminsetmessages: + msg2278
2009-08-03 00:00:00adminsetstatus: open -> nad
2009-03-03 00:00:00admincreate