Michele Caini 6 jaren geleden
bovenliggende
commit
c832888d56
1 gewijzigde bestanden met toevoegingen van 15 en 0 verwijderingen
  1. 15 0
      src/entt/entity/registry.hpp

+ 15 - 0
src/entt/entity/registry.hpp

@@ -936,6 +936,11 @@ public:
      * Listeners are invoked **after** the component has been assigned to the
      * entity. The order of invocation of the listeners isn't guaranteed.
      *
+     * @note
+     * Empty types aren't explicitly instantiated. Therefore, temporary objects
+     * are returned through signals. They can be caught only by copy or with
+     * const references.
+     *
      * @sa sink
      *
      * @tparam Component Type of component of which to get the sink.
@@ -962,6 +967,11 @@ public:
      * Listeners are invoked **before** the component has been replaced. The
      * order of invocation of the listeners isn't guaranteed.
      *
+     * @note
+     * Empty types aren't explicitly instantiated. Therefore, temporary objects
+     * are returned through signals. They can be caught only by copy or with
+     * const references.
+     *
      * @sa sink
      *
      * @tparam Component Type of component of which to get the sink.
@@ -989,6 +999,11 @@ public:
      * Listeners are invoked **before** the component has been removed from the
      * entity. The order of invocation of the listeners isn't guaranteed.
      *
+     * @note
+     * Empty types aren't explicitly instantiated. Therefore, temporary objects
+     * are returned through signals. They can be caught only by copy or with
+     * const references.
+     *
      * @sa sink
      *
      * @tparam Component Type of component of which to get the sink.