Jelajahi Sumber

emitter: updated definition for ::publish

Michele Caini 1 tahun lalu
induk
melakukan
279166cb8b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/entt/signal/emitter.hpp

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

@@ -123,7 +123,7 @@ public:
      * @param value An instance of the given type of event.
      * @param value An instance of the given type of event.
      */
      */
     template<typename Type>
     template<typename Type>
-    void publish(Type &&value) {
+    void publish(Type value) {
         if(const auto id = type_id<Type>().hash(); handlers.first().contains(id)) {
         if(const auto id = type_id<Type>().hash(); handlers.first().contains(id)) {
             handlers.first()[id](&value);
             handlers.first()[id](&value);
         }
         }