【发布时间】:2014-03-16 15:23:10
【问题描述】:
如何测试 OtherFoo 模板参数(对于我的 TT 别名)是 Foo 与其他模板参数:
template <class... Pack>
class Foo
{
class SomeClass {};
template <class OtherFoo> // OtherFoo = Foo with other template parameters
using TT = typename OtherFoo::SomeClass;
};
假设不可能进行欺骗。
【问题讨论】:
标签: c++ c++11 metaprogramming template-meta-programming