c++visual-studio-2013blitz++

Blitz does not work in vs 2013


I have a project I written in vs 2010. In this project blitz is used. But now when I open this project in 2013 and tried to run it. Some error says:

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

So it appears in indexexpr.h

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

How can I resovle it? I see similar error from internet. But their error appear in slice.h.


Solution

  • Per the discussion linked to by Drew Dormann you should replace

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

    with

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

    Disclaimer: I don't know if this works.