You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SparseMatrix.hpp contains two bugs in the following C++ version check as of commit 299047b:
#if __cplusplus <= 201103L
// for C++03
#include <map>
typedef std::map< global_int_t, local_int_t > GlobalToLocalMap;
#else
// for C++11 or greater
#include <unordered_map>
using GlobalToLocalMap = std::unorderd_map< global_int_t, local_int_t >;
#endif
The check of __cplusplus performs a less than or equal check which should be a less than check. As it is written passing -std=c++11 to g++ causes the "// for C++03" code to be used.
In the "// for C++11 or greater" code, std::unordered_map is incorrectly spelled as std::unorderd_map. It is missing the e between the r and d.
The text was updated successfully, but these errors were encountered:
SparseMatrix.hpp contains two bugs in the following C++ version check as of commit 299047b:
The check of __cplusplus performs a less than or equal check which should be a less than check. As it is written passing -std=c++11 to g++ causes the "// for C++03" code to be used.
In the "// for C++11 or greater" code, std::unordered_map is incorrectly spelled as std::unorderd_map. It is missing the e between the r and d.
The text was updated successfully, but these errors were encountered: