diff --git a/engine/engine.h b/engine/engine.h index 265dd5c05..bc6b414ca 100644 --- a/engine/engine.h +++ b/engine/engine.h @@ -31,9 +31,9 @@ class Engine { void set_layout_width(int width); - void set_on_navigation_failure(auto cb) { on_navigation_failure_ = std::move(cb); } - void set_on_page_loaded(auto cb) { on_page_loaded_ = std::move(cb); } - void set_on_layout_updated(auto cb) { on_layout_update_ = std::move(cb); } + void set_on_navigation_failure(std::function cb) { on_navigation_failure_ = std::move(cb); } + void set_on_page_loaded(std::function cb) { on_page_loaded_ = std::move(cb); } + void set_on_layout_updated(std::function cb) { on_layout_update_ = std::move(cb); } uri::Uri const &uri() const { return uri_; } protocol::Response const &response() const { return response_; }