This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-19


148. POD classes and pointers to members

Section: Clause 11  [class]     Status: TC1     Submitter: Nathan Sidwell     Date: 31 Jul 1999

6.8 [basic.types] paragraph 10 defines pointer to member types to be scalar types. It also defines scalar types to be one of the POD types.

Clause 11 [class] paragraph 4 defines a POD struct as an aggregate class with no non-static data members of type pointer to member.

It seems contradictory that a type can be POD, yet a class containing that type is non-POD.

Suggested resolution: Alter Clause 11 [class] paragraph 4 to allow pointer to member objects as non-static data members of POD class.

Proposed resolution (10/00):

In Clause 11 [class] paragraph 4, remove all occurrences of "pointer to member."