Intermediate C++
Q50 / 100

What is SFINAE?

Correct! Well done.

Incorrect.

The correct answer is B) Substitution Failure Is Not An Error: invalid template substitutions are silently discarded rather than causing compile errors

B

Correct Answer

Substitution Failure Is Not An Error: invalid template substitutions are silently discarded rather than causing compile errors

Explanation

SFINAE enables conditional template instantiation. If template substitution fails (e.g., a type lacks a method), that overload is removed from consideration without a compile error.

Progress
50/100