Inlining Constructors

A

Alf P. Steinbach

* Charles Bailey:
Is that true?

BS ISO/IEC 14882:2003 (Second Edition)
3.9 (10) says that POD-structs are POD types, and 9 (4) says that a
POD-struct is an aggregate class which has no non-static data members of
type non-POD-struct, non-POD-union (or array of such types) or
reference, and has no user-defined copy assignment operator and no
user-defined destructor. There's no mention of constructors.

Is there a ban on constructors in a paragraph that I've missed?

Definition of aggregates, §8.5.1/1.
 
C

Charles Bailey

Alf said:
* Charles Bailey:

Definition of aggregates, §8.5.1/1.

Ah, thanks. Looks like I've got some code to rewrite, now. I'm using
offsetof on a non-POD class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,199
Latest member
MarielIzzo

Latest Threads

Top