Export to GitHub

c-plus - issue #3

Preprocessor SFINAE


Posted on Jun 30, 2013 by Swift Hippo

Use of the conditional inclusion defined operator in syntax other than defined id or defined( id ) is UB.

Wouldn't it be nice if defined( fn( args ) ) evaluated whether the macro replacement would be well-formed?

It would show off, and nicely test, the framework's error-handling flexibility.

Status: Accepted

Labels:
Type-Enhancement Priority-Low