【发布时间】:2015-01-24 01:19:32
【问题描述】:
专用于const char * 的模板是否也会捕获char *?
例如:
template <typename T> class Foo { /* ... */ };
template <> class Foo<const char *> { /* ... */ };
Foo<char *> 是指通用模板还是专用模板?
【问题讨论】:
标签: c++ templates constants template-specialization