Substitution failure is not an error: Difference between revisions

Content deleted Content added
Daniel347x (talk | contribs)
No edit summary
Improve comment
Line 45:
static no& test(...);
 
// If the "sizeof" of the result of calling test<T>(0) would be equal to the sizeof(yes),
// the first overload worked and T has a nested type named foobar.
static const bool value = sizeof(test<T>(0)) == sizeof(yes);