Substitution failure is not an error: Difference between revisions

Content deleted Content added
Nonick (talk | contribs)
m Example: Grammar
Line 45:
static no& test(...);
 
// If the "sizeof" of the result of calling test<T>(nullptr) would beis equal to sizeof(yes),
// the first overload worked and T has a nested type named foobar.
static const bool value = sizeof(test<T>(nullptr)) == sizeof(yes);