diff --git a/include/mqtt/callable_overlay.hpp b/include/mqtt/callable_overlay.hpp index 6d68f6ab..41ca3d83 100644 --- a/include/mqtt/callable_overlay.hpp +++ b/include/mqtt/callable_overlay.hpp @@ -2019,7 +2019,7 @@ struct callable_overlay final : public Impl * @brief Get error handler * @return handler */ - error_handler const& get_error_handler() const { + error_handler get_error_handler() const { return h_error_; }