skypjack пре 2 месеци
родитељ
комит
83dc6f4a97
3 измењених фајлова са 5 додато и 5 уклоњено
  1. 2 2
      src/entt/signal/dispatcher.hpp
  2. 1 1
      src/entt/signal/emitter.hpp
  3. 2 2
      src/entt/signal/sigh.hpp

+ 2 - 2
src/entt/signal/dispatcher.hpp

@@ -50,7 +50,7 @@ public:
             signal.publish(events[pos]);
             signal.publish(events[pos]);
         }
         }
 
 
-        events.erase(events.cbegin(), events.cbegin() + static_cast<typename container_type::difference_type>(length));
+        events.erase(events.cbegin(), events.cbegin() + static_cast<container_type::difference_type>(length));
     }
     }
 
 
     void disconnect(void *instance) override {
     void disconnect(void *instance) override {
@@ -114,7 +114,7 @@ class basic_dispatcher {
     using mapped_type = std::shared_ptr<internal::basic_dispatcher_handler>;
     using mapped_type = std::shared_ptr<internal::basic_dispatcher_handler>;
 
 
     using alloc_traits = std::allocator_traits<Allocator>;
     using alloc_traits = std::allocator_traits<Allocator>;
-    using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
+    using container_allocator = alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
     using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
     using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
 
 
     template<typename Type>
     template<typename Type>

+ 1 - 1
src/entt/signal/emitter.hpp

@@ -38,7 +38,7 @@ class emitter {
     using mapped_type = std::function<void(void *)>;
     using mapped_type = std::function<void(void *)>;
 
 
     using alloc_traits = std::allocator_traits<Allocator>;
     using alloc_traits = std::allocator_traits<Allocator>;
-    using container_allocator = typename alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
+    using container_allocator = alloc_traits::template rebind_alloc<std::pair<const key_type, mapped_type>>;
     using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
     using container_type = dense_map<key_type, mapped_type, identity, std::equal_to<>, container_allocator>;
 
 
 public:
 public:

+ 2 - 2
src/entt/signal/sigh.hpp

@@ -359,8 +359,8 @@ private:
 template<typename Ret, typename... Args, typename Allocator>
 template<typename Ret, typename... Args, typename Allocator>
 class sink<sigh<Ret(Args...), Allocator>> {
 class sink<sigh<Ret(Args...), Allocator>> {
     using signal_type = sigh<Ret(Args...), Allocator>;
     using signal_type = sigh<Ret(Args...), Allocator>;
-    using delegate_type = typename signal_type::delegate_type;
-    using difference_type = typename signal_type::container_type::difference_type;
+    using delegate_type = signal_type::delegate_type;
+    using difference_type = signal_type::container_type::difference_type;
 
 
     template<auto Candidate, typename Type>
     template<auto Candidate, typename Type>
     static void release(Type value_or_instance, void *signal) {
     static void release(Type value_or_instance, void *signal) {