Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-01-04 17:09:01


Arkadiy Vertleyb wrote:
> AFAIU, you are trying to fix ensure_obj, but this is only one context in
> which typeof would fail with void expression. The other contexts include:
>
> 1) typeof emulation;
> 2) MSVC trick;
> 3) LVALUE_TYPEOF

Yes.

> All of the above try to pass the expression into a function, and will fail
> if type of the expression is void.
>
> Whichever solution we'll find, I think we should wrap it into a macro, and
> consistently apply everywhere.
>
> As far as what you suggesting, it looks promising, but we need to evaluate
> consiquenses... Such as one Peder found.

I agree. Another consequence is ICE on gcc 3.3.5 :(
3.4.4 is immune to my fix.

-- 
Alexander Nasonov

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