Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-21 11:24:57


Jonathan Wakely <cow_at_[hidden]> writes:

> On Wed, Jul 21, 2004 at 03:29:00PM +0100, Jonathan Wakely wrote:
>
>> > primary question: is it allowed to instantiate vector with incomplete type?
>> > If yes, it's a bug in g++, otherwise, it's a bug in program options.
>
> http://gcc.gnu.org/ml/gcc/2003-04/msg01516.html (and the reply)
>
> It would seem to be undefined behaviour, although I can't consult
> 17.3.4.6[2] right now.

It's definitely undefined behavior. You're not allowed to
instantiate any std templates with undefined types.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk