Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Concept about "complete type"

0 views
Skip to first unread message

qinghu

unread,
Feb 4, 2006, 7:04:59 AM2/4/06
to
hi, when I read about the BOOST::scoped_pt. the document say we muse
supply a pointer of "complete type" for its constructor. I just can't
get it, what's eactly mean "complete type"? anyone can give more detail
info about it?


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Valentin Samko

unread,
Feb 4, 2006, 1:57:43 PM2/4/06
to
qinghu wrote:
> hi, when I read about the BOOST::scoped_pt. the document say we muse
> supply a pointer of "complete type" for its constructor. I just can't
> get it, what's eactly mean "complete type"? anyone can give more detail
> info about it?

Complete type is a class which was defined (and not just declared) or an array of a known
size of complete element type, see 3.9/6.

--

Valentin Samko - http://www.valentinsamko.com

Bob Hairgrove

unread,
Feb 4, 2006, 2:00:16 PM2/4/06
to
On 4 Feb 2006 07:04:59 -0500, "qinghu" <qingh...@gmail.com> wrote:

>hi, when I read about the BOOST::scoped_pt. the document say we muse
>supply a pointer of "complete type" for its constructor. I just can't
>get it, what's eactly mean "complete type"? anyone can give more detail
>info about it?

See section 9.2 paragraph 2 of the C++ standard.

--
Bob Hairgrove
NoSpam...@Home.com

0 new messages