Boost logo

Boost :

Subject: [boost] C++11 challenge: ASSERT_INVALID_EXPR
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-12-04 11:15:50

I don't know whether this is actually possible, but I was thinking today
that there might be a way to use the new SFINAE to detect errors in a
large class of invalid expressions without actually causing a hard
error, and thereby build an assertion that fails compilation when passed
a valid expression and passes for any invalid expression in the large
class mentioned above.

Any takers?

Dave Abrahams
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at