问题描述
我正在尝试让示例项目 Blitz-Examples/array 在 Microsoft Visual Studio 2013 中进行编译.我们似乎陷入了以下错误:(VS 2012 中不存在此错误)
I am trying to get the example project Blitz-Examples/array to compile i n Microsoft Visual Studio 2013. We seem to get stuck on the following error: (This error does not exist in VS 2012)
error C2955:'std::rank' 使用类模板需要模板参数列表.文件 blitz/slice.h,第 57 行.
template<>
class ArraySectionInfo<Range> {
public:
static const int isValidType = 1, rank = 1, isPick = 0;
};
示例程序不包含 type_traits 头文件.示例代码也没有任何地方导入 std::rank
.
The example program does not include the type_traits header file. Also in no place the example code imports std::rank
.
有人遇到过这个问题吗?
Does any one encountered this issue?
推荐答案
如果您查看 Blitz++ 的邮件列表,您会注意到其他用途也面临同样的问题.这里是讨论的链接,以及 Vince Virgilio 发布的解决方案.解决方案中需要调整Boost++自带的slice.h头文件.
If you check the mailing list of Blitz++, you will note that other uses faced the same problem. Here is a link to the discussion, as well as solution posted by Vince Virgilio. In the solution, you have to adjust the slice.h header file included with Boost++.
这篇关于blitz++ 和 Visual C++ 2013 命名空间与等级类型冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!