diff --git a/include/parser.hpp b/include/parser.hpp index 029c9c2..05e5971 100644 --- a/include/parser.hpp +++ b/include/parser.hpp @@ -39,6 +39,22 @@ enum RunMode { NONE, GPU_THREADED, CPU, GPU_MPI }; +/** + * @brief this allows the use of isnan() for int + * in the template function fileToVector() + */ +inline bool isnan(int i){ + return false; +} + +/** + * @brief this allows the use of isnan() for unsigned + * in the template function fileToVector() + */ +inline bool isnan(unsigned i){ + return false; +} + /** * @brief Parses a given file(filename) line by line. * Each line should contain just one value