diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-10-10 16:59:44 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-10-10 17:07:24 +0200 |
commit | 4569a747f8af3880e23408eb93323afc8088b78b (patch) | |
tree | 81dcea51020173cd4951e8649f8bd8305e7c2591 /kernel/utils.h | |
parent | c7f5aab625bb90e766c1852592fdf42c951716c0 (diff) |
Renamed SIZE() to GetSize() because of name collision on Win32
Diffstat (limited to 'kernel/utils.h')
-rw-r--r-- | kernel/utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/utils.h b/kernel/utils.h index 264558b8..1779a9af 100644 --- a/kernel/utils.h +++ b/kernel/utils.h @@ -83,7 +83,7 @@ public: void reset(const Key &k) { - for (int i = SIZE(backup_state)-1; i >= 0; i--) + for (int i = GetSize(backup_state)-1; i >= 0; i--) if (backup_state[i].count(k) != 0) { if (backup_state[i].at(k) == nullptr) current_state.erase(k); @@ -160,7 +160,7 @@ struct TopoSort found_loops = true; if (analyze_loops) { std::set<T> loop; - for (int i = SIZE(active_stack)-1; i >= 0; i--) { + for (int i = GetSize(active_stack)-1; i >= 0; i--) { loop.insert(active_stack[i]); if (active_stack[i] == n) break; @@ -204,7 +204,7 @@ struct TopoSort for (auto &it : database) sort_worker(it.first, marked_cells, active_cells, active_stack); - log_assert(SIZE(sorted) == SIZE(database)); + log_assert(GetSize(sorted) == GetSize(database)); return !found_loops; } }; |