草庐IT

FilteredConstructor

全部标签

c++ - 模板内的模板 VS 2005 问题?

下面的代码(用clang和gcc编译得很好)。问题是这段代码违反了C++03标准,或者这是VS2005错误?如果这是错误,是否有解决方法?更新:我通过使用前向声明找到了解决方法://forwarddeclarationtemplate::IsAccepted>structFilteredConstructor;//implementationtemplateclassFilteredConstructor{/*codehere*/};但是根据标准仍然存在关于此类代码有效或无效的问题namespace{structCoreTypesFilter{templatestructAccepto