Merge branch 'tracer' of geras.asc.tuwien.ac.at:jschoeberl/netgen into tracer

This commit is contained in:
Christopher Lackner 2019-01-07 14:17:56 +01:00
commit 19339a923d
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@
#include <limits> #include <limits>
#include <vector> #include <vector>
#include <x86intrin.h> // for __rdtsc() CPU time step counter
#include "logging.hpp" // for logger #include "logging.hpp" // for logger
#include "ngcore_api.hpp" // for NGCORE_API #include "ngcore_api.hpp" // for NGCORE_API

View File

@ -45,7 +45,7 @@ namespace ngcore
} }
/// INDEX of symbol name, throws exception if unused /// INDEX of symbol name, throws exception if unused
NGCORE_API size_t Index (const std::string & name) const size_t Index (const std::string & name) const
{ {
for (size_t i = 0; i < names.size(); i++) for (size_t i = 0; i < names.size(); i++)
if (names[i] == name) return i; if (names[i] == name) return i;
@ -53,7 +53,7 @@ namespace ngcore
} }
/// Index of symbol name, returns -1 if unused /// Index of symbol name, returns -1 if unused
NGCORE_API int CheckIndex (const std::string & name) const int CheckIndex (const std::string & name) const
{ {
for (int i = 0; i < names.size(); i++) for (int i = 0; i < names.size(); i++)
if (names[i] == name) return i; if (names[i] == name) return i;