Răsfoiți Sursa

sigh: small changes to make doxygen happy

Michele Caini 3 ani în urmă
părinte
comite
12b436e5b8
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      src/entt/signal/sigh.hpp

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

@@ -431,8 +431,8 @@ public:
      * @param value_or_instance A valid object that fits the purpose.
      * @param value_or_instance A valid object that fits the purpose.
      * @return A properly initialized sink object.
      * @return A properly initialized sink object.
      */
      */
-    template<typename Type>
-    [[nodiscard]] std::enable_if_t<!std::is_same_v<std::decay_t<std::remove_pointer_t<Type>>, void>, sink> before(Type &value_or_instance) {
+    template<typename Type, typename = std::enable_if_t<!std::is_same_v<std::decay_t<std::remove_pointer_t<Type>>, void>, sink>>
+    [[nodiscard]] sink before(Type &value_or_instance) {
         return before(&value_or_instance);
         return before(&value_or_instance);
     }
     }
 
 
@@ -518,8 +518,8 @@ public:
      * @tparam Type Type of class or type of payload.
      * @tparam Type Type of class or type of payload.
      * @param value_or_instance A valid object that fits the purpose.
      * @param value_or_instance A valid object that fits the purpose.
      */
      */
-    template<typename Type>
-    std::enable_if_t<!std::is_same_v<std::decay_t<std::remove_pointer_t<Type>>, void>> disconnect(Type &value_or_instance) {
+    template<typename Type, typename = std::enable_if_t<!std::is_same_v<std::decay_t<std::remove_pointer_t<Type>>, void>>>
+    void disconnect(Type &value_or_instance) {
         disconnect(&value_or_instance);
         disconnect(&value_or_instance);
     }
     }