Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-25 08:39:08


From: "Howard Hinnant" <hinnant_at_[hidden]>
>
> Furthermore, it is undefined to pass a non-pod to an ellipse (5.2.2/7):
>
> int foo(...);
>
> class B
> {
> public:
> B();
> private:
> B(const B&);
> };
>
> int main()
> {
> foo(B()); // undefined behavior
> }
>
> If you stick that in a sizeof, it is still undefined:
>
> sizeof(foo(B()));

Is it?

if(false) foo(B());

Is this undefined too?


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