Created on 2022-12-02.00:00:00 last changed 17 months ago
Proposed resolution (approved by CWG 2023-01-06):
Change in 11.8.1 [class.access.general] paragraph 4 as follows:
... When a using-declarator is named, access control is applied to it, not to the declarations that replace it. For an overload set, access control is applied only to the function selected by overload resolution.[ Example:
struct S { void f(int); private: void f(double); }; void g(S* sp) { sp->f(2); // OK, access control applied after overload resolution }
-- end example ]
[Accepted as a DR at the February, 2023 meeting.]
Issue 600 was resolved by P1787R6, but no example was added.
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-07-16 13:00:43 | admin | set | status: open -> c++23 |
2023-07-16 13:00:43 | admin | set | status: dr -> open |
2023-02-18 18:43:04 | admin | set | status: ready -> dr |
2023-01-07 14:11:02 | admin | set | status: open -> ready |
2022-12-04 20:31:46 | admin | set | messages: + msg7087 |
2022-12-02 00:00:00 | admin | create |