From 4408488119656944274
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7317cd62b805354f
X-Google-Attributes: gidf78e5,public
From: clamage@eng.sun.com (Steve Clamage)
Subject: Re: What's POD? Was: size of empty class?
Date: 1999/06/08
Message-ID: <7jjjbu$pgi$1@engnews1.eng.sun.com>#1/1
X-Deja-AN: 487145004
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
References: <375609F3.1B7189E5@spots.ab.ca> <p6qu2spp41q.fsf@pandora.inst-inf-1.hu-berlin.de> <7j8r96$fqj$1@nnrp1.deja.com> <7j8v2k$l95$1@uuneo.neosoft.com> <375B4F0E.275FC699@spots.ab.ca> <37615842.1212991826@netnews.worldnet.att.net>
X-Original-Date: 8 Jun 1999 17:19:58 GMT
Organization: Sun Microsystems Inc., Mountain View, CA
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN11RJqwEuYhIxRhxAQGxnwH+IriKBRQk320+Ah0L94j98Ej/HD6LHQnR VJEpZnGdGRvkGWsgsyWms2LkGnWDyPK08nVGCNRAsixBwyceOHaU4g== =OAgC
Newsgroups: comp.std.c++

jackklein@att.net (Jack Klein) writes:

>On 07 Jun 99 05:12:12 GMT, Maxwell Sayles <fysx@spots.ab.ca> wrote in
>comp.std.c++:

>> What does POD stand for?

>POD stands for "Plain Old Data".  What it means is a struct or class
>which contains nothing but simple data items, no member functions.  If
>it is a struct or changed from a class to a struct it could compile in
>a C program.

A POD can contain static member functions and private or protected
static data members.

>The term is used many times in the standard but IIRC it is defined
>only in a footnote, and footnotes are not normative.

The term is completely defined in normative text in clause 9
paragraph 4, with a reference to section 8.5.1.

--
Steve Clamage, stephen.clamage@sun.com
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



