Title
Assignment vs initialization
Status
tc1
Section
15.6.2 [class.base.init]
Submitter
Mike Miller

Created on 2000-09-16.00:00:00 last changed 208 months ago

Messages

Date: 2000-10-15.00:00:00

Proposed resolution (10/00): As suggested.

Date: 2003-04-25.00:00:00

In 15.6.2 [class.base.init] paragraph 4 we read:

After the call to a constructor for class X has completed, if a member of X is neither specified in the constructor's mem-initializers, nor default-initialized, nor initialized during execution of the body of the constructor, the member has indeterminate value.

Using the term "initialized" to describe setting the value of a member inside the body of a constructor is a misuse of the term: only by use of a placement new expression can a member be initialized "during the execution of the body of the constructor."

Suggested resolution: Change "initialized" to "given a value."

History
Date User Action Args
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-11-18 00:00:00adminsetmessages: + msg447
2000-11-18 00:00:00adminsetstatus: open -> dr
2000-09-16 00:00:00admincreate