blitz++ and visual C++ 2013 namespace conflict with rank type

强颜欢笑 提交于 2019-12-11 10:25:17

问题


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’ use of class template requires template argument list. File blitz/slice.h, line 57.

template<>
class ArraySectionInfo<Range> {
public:
    static const int isValidType = 1, rank = 1, isPick = 0;
};

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?


回答1:


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++.



来源:https://stackoverflow.com/questions/27491385/blitz-and-visual-c-2013-namespace-conflict-with-rank-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!