起因:在使用enable_if时,发现,enable_if<std::is_xxx<T>::value>::type,并没有传递第二个参数,那么第二个参数怎么确定为void类型。
后续:
发现类似问题:https://stackoverflow.com/questions/18700558/default-template-parameter-partial-specialization
1. 尽可能优先匹配偏特化版本,
2. 偏特化模板中不能有默认参数(待确定)
原文:https://www.cnblogs.com/chenia/p/14780753.html