
4 Dec
2011
4 Dec
'11
4:15 p.m.
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 http://www.boostpro.com