Michele Caini 6 years ago
parent
commit
c832888d56
1 changed files with 15 additions and 0 deletions
  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
      * Listeners are invoked **after** the component has been assigned to the
      * entity. The order of invocation of the listeners isn't guaranteed.
      * 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
      * @sa sink
      *
      *
      * @tparam Component Type of component of which to get the 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
      * Listeners are invoked **before** the component has been replaced. The
      * order of invocation of the listeners isn't guaranteed.
      * 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
      * @sa sink
      *
      *
      * @tparam Component Type of component of which to get the 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
      * Listeners are invoked **before** the component has been removed from the
      * entity. The order of invocation of the listeners isn't guaranteed.
      * 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
      * @sa sink
      *
      *
      * @tparam Component Type of component of which to get the sink.
      * @tparam Component Type of component of which to get the sink.