我想使用类型别名从带有两个参数的模板中创建一个带有一个参数的模板:
// forward declaration
template<int Id, typename MixtureManager> class MixtureBridge;
/**
* Specialization of the MixtureTraits for the Gaussian_sjk_ model
**/
template<>
struct BridgeTraits<STK::Clust::Gaussian_sjk_>
{
// ... some traits
};
template <typename MixtureManager>
using GaussianBridge_sjk_m = MixtureBridge<STK::Clust::Gaussian_sjk_, MixtureManager>;
我收到以下错误消息:
mixt_GaussianBridges.h:65:1: error: expected unqualified-id before 'using'
我的语法有什么问题?
注意:我正在Windows上使用gcc 4.6.3
gcc 4.6不支持模板别名:https : //gcc.gnu.org/gcc-4.6/cxx0x_status.html
将您的编译器升级到最新版本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句