📜  替换失败不是错误 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.752000             🧑  作者: Mango

代码示例1
/* "Substitution Failure Is Not An Error"

This rule applies during overload resolution of function templates:
When substituting the explicitly specified or deduced type for the
template parameter fails, the specialization is discarded from the
overload set instead of causing a compile error.

This feature is used in template metaprogramming.
STL features like std::enable_if use SFINAE
*/