【问题标题】:Blitz does not work in vs 2013闪电战在 vs 2013 中不起作用
【发布时间】:2015-01-27 22:31:45
【问题描述】:

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

错误 C2955: 'std::rank' : 使用类模板需要模板参数列表 ~~\blitz\indexexpr.h 69 1 MOM

所以出现在indexexpr.h中

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

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

【问题讨论】:

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


【解决方案1】:

根据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;

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

【讨论】:

  • 是的!这是正确的方法。它运作良好!但您必须更正其他类似的错误。
猜你喜欢
  • 1970-01-01
  • 2015-02-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多