Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-01 09:59:24


Alexander Nasonov <alnsn-mycop_at_[hidden]> writes:

> I'm trying to apply this technique
> http://groups.google.com/groups?q=richard%40ex-parrot.com+type_fwd&hl=en&ie=ISO-8859-1&oe=ISO-8859-1&selm=1011126576.17796.0.nnrp-02.3e31d362%40news.demon.co.uk&rnum=1
> but I can't. Is something wrong there?

Yes. SFINAE doesn't extend to expressions in sizeof(...). It only
ignores malformed types, but the illegal expression is checked before
any type is formed "around it". At least, that's the way I
understand it.

-- 
Dave Abrahams
Boost Consulting
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