diff --git a/src/entt/poly/poly.hpp b/src/entt/poly/poly.hpp index 449ea4ac2..4818330ed 100644 --- a/src/entt/poly/poly.hpp +++ b/src/entt/poly/poly.hpp @@ -30,11 +30,11 @@ struct poly_inspector { * @param args The arguments to pass to the function. * @return A poly inspector convertible to any type. */ - template + template poly_inspector invoke(Args &&...args) const; /*! @copydoc invoke */ - template + template poly_inspector invoke(Args &&...args); }; @@ -135,7 +135,7 @@ struct poly_base { * @param args The arguments to pass to the function. * @return The return value of the invoked function, if any. */ - template + template [[nodiscard]] decltype(auto) invoke(const poly_base &self, Args &&...args) const { const auto &poly = static_cast(self); @@ -147,7 +147,7 @@ struct poly_base { } /*! @copydoc invoke */ - template + template [[nodiscard]] decltype(auto) invoke(poly_base &self, Args &&...args) { auto &poly = static_cast(self); @@ -169,7 +169,7 @@ struct poly_base { * @param args The arguments to pass to the function. * @return The return value of the invoked function, if any. */ -template +template decltype(auto) poly_call(Poly &&self, Args &&...args) { return std::forward(self).template invoke(self, std::forward(args)...); }