From 2766729291846575287
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,94e9c2bbb0060b48
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-08-15 17:00:05 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "James Russell Kuyper Jr." <kuyper@wizard.net>
Newsgroups: comp.std.c++
Subject: Re: Proposals for small vectors?
Date: Thu, 15 Aug 2002 23:59:10 GMT
Organization: Not Enough
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3D5B02EF.9635E629@wizard.net>
References: <87wurryywb.fsf@grue.ucsd.edu> <3D38FB4F.1020909@animats.com> <877kjnpg3p.fsf@grue.ucsd.edu> <3d4f850b.146537@news.iperbole.bologna.it> <aec458c5.0208070435.473a4e80@posting.google.com> <3d538392.2753209@news.iperbole.bologna.it> <aec458c5.0208112235.3024aa2b@posting.google.com> <3d5a206b.2846421@news.iperbole.bologna.it>
X-Trace: mail2news.demon.co.uk 1029455970 mail2news:27289 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ncar.ucar.edu
X-Accept-Language: en, es, de, ru
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-GC-Trace: gv1-DA5//c5+bu9UiJ7eZu2QEdN3TFgheqO7OFnve02YzF+2AruDc0=
NNTP-Posting-Date: Wed, 14 Aug 2002 20:24:36 CDT
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1
Lines: 23
Xref: archiver1.google.com comp.std.c++:13259

Natale Fietta wrote:
....
> I'm not a language lawyer, probably i am not using the term POD in the
> correct way, for me a POD is a class with a memory layout compatible
> with a C struct. to obtain this it is necessary (and as far as i know
> also sufficient) to have no virtual function, to have all datas in the
> same section and to evitate multiple inheritance and virtual bases; is
> this incorrect ?

Those are all necessary. They're not quite sufficient. Among other
things, all of the non-static data members must also have POD types.

> My vectors classes often have non trivial constructor, do this make
> them non-POD ?

Yes.

---
[ 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://www.jamesd.demon.co.uk/csc/faq.html                       ]



