From f138cf17bd42d43c2177d494b78d3e8486b52714 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 23 Jan 2019 12:04:58 +0100 Subject: Use custom comparison for core::prioritize (instead of std::less) This way, another class can iherit core::prioritized and overload its operator<(). --- engine/include/core/task.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/include/core/task.hpp') diff --git a/engine/include/core/task.hpp b/engine/include/core/task.hpp index b6ddad1..90e3d97 100644 --- a/engine/include/core/task.hpp +++ b/engine/include/core/task.hpp @@ -18,7 +18,7 @@ namespace flat { std::function m_callback; }; - struct job : public std::multiset { + struct job : public queue { inline auto add_task(task t) { this->insert(t); } @@ -26,4 +26,4 @@ namespace flat { void invoke_tasks(); }; } -} \ No newline at end of file +} -- cgit v1.2.1