β

What does 'typename Enable = void' mean?

User zangw - Stack Overflow 90 阅读

I found typename Enable = void is defined in the ProtoBuf ,

template<typename T, typename Enable = void>
struct RefTypeTraits;

However, I cannot find the Enable is used in this header file , which confuse me. What does typename Enable = void mean in template?

作者:User zangw - Stack Overflow
most recent 30 from stackoverflow.com
原文地址:What does 'typename Enable = void' mean?, 感谢原作者分享。