Substitution failure is not an error: Difference between revisions

Content deleted Content added
m Undid revision 442600324 by 1exec1 (talk) This style conserves vertical space. It's also "accepted here".
Example: ed: reworded "if...sizeof...calling...is equal" -> "if...sizeof...calling...would be equal" for clarity
Line 45:
static no& test(...);
 
// if the sizeof the result of calling test<T>(0) iswould be equal to the sizeof(yes),
// the first overload worked and T has a nested type named type.
static const bool value = sizeof(test<T>(0)) == sizeof(yes);