diff options
author | David Snopek <dsnopek@gmail.com> | 2024-04-02 14:30:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 14:30:01 -0500 |
commit | 44d78ec8816e57fdd0c06812d31c09a25b97d6e8 (patch) | |
tree | 502a26499fd129c80619ed290cd0125b327055f1 /include/godot_cpp/templates/thread_work_pool.hpp | |
parent | a62f633cebee4b36356dc903d00670733cd28fb1 (diff) | |
parent | 87f5fb06912d19b3ff3ba80b747fcea3023a1ed5 (diff) | |
download | redot-cpp-44d78ec8816e57fdd0c06812d31c09a25b97d6e8.tar.gz |
Merge pull request #1409 from Repiteo/class-to-typename
Enforce template syntax `typename` over `class`
Diffstat (limited to 'include/godot_cpp/templates/thread_work_pool.hpp')
-rw-r--r-- | include/godot_cpp/templates/thread_work_pool.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/godot_cpp/templates/thread_work_pool.hpp b/include/godot_cpp/templates/thread_work_pool.hpp index a3efd42..cb20c6e 100644 --- a/include/godot_cpp/templates/thread_work_pool.hpp +++ b/include/godot_cpp/templates/thread_work_pool.hpp @@ -52,7 +52,7 @@ class ThreadWorkPool { virtual ~BaseWork() = default; }; - template <class C, class M, class U> + template <typename C, typename M, typename U> struct Work : public BaseWork { C *instance; M method; @@ -94,7 +94,7 @@ class ThreadWorkPool { } public: - template <class C, class M, class U> + template <typename C, typename M, typename U> void begin_work(uint32_t p_elements, C *p_instance, M p_method, U p_userdata) { ERR_FAIL_NULL(threads); // Never initialized. ERR_FAIL_COND(current_work != nullptr); @@ -145,7 +145,7 @@ public: current_work = nullptr; } - template <class C, class M, class U> + template <typename C, typename M, typename U> void do_work(uint32_t p_elements, C *p_instance, M p_method, U p_userdata) { switch (p_elements) { case 0: |