我有一个我用 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/