c++ - Blitz 在 vs 2013 中不起作用

标签 c++ visual-studio-2013 blitz++

我有一个我用 vs 2010 编写的项目。在这个项目中使用了 blitz。但是现在当我在 2013 年打开这个项目并尝试运行它时。一些错误说:

error C2955: 'std::rank' : use of class template requires template argument list ~~\blitz\indexexpr.h 69 1 MOM

所以出现在indexexpr.h中

    static const int 
    numArrayOperands = 0, 
    numIndexPlaceholders = 1,
    rank = N+1;   //error here

我该如何解决? 我从互联网上看到类似的错误。但是他们的错误出现在slice.h中。

最佳答案

根据 Drew Dormann 链接的讨论你应该更换

static const int 
    numArrayOperands = 0, 
    numIndexPlaceholders = 1,
    rank = N+1;

static const int numArrayOperands = 0;
static const int numIndexPlaceholders = 1;
static const int rank = N+1;

免责声明:我不知道这是否有效。

关于c++ - Blitz 在 vs 2013 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28181280/

相关文章:

c++ - 使用 blitz++ 声明 3d 数组

C++ 保护进程不被挂起

c++ - 为 Amazon EC2 交叉编译 C++ 二进制文件

c++ - 转发初始化列表表达式

c++ - 编译器在 VC12 (VS2013) 中生成 move 构造函数行为

c++ - 如何在 Linux 上的特定目录(不需要 sudo 权限的目录)中安装 C++ 库(例如 Blitz++)?

java - 单例和其他设计问题

asp.net-mvc - 自更新 NuGet 包以来,VS 一直需要重启

asp.net-mvc - 上下文菜单中缺少 ASP MVC 5 项目 'New Scaffolded Item...'

c++ - 使用 restrict 关键字摆脱函数的 "type qualifier"警告