From 30eba2dadf684f570bf46c145c9f4a0abc33c75b Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 10 Apr 2024 13:33:37 +0200 Subject: [PATCH] fixed compilation (handle_http_request_map definition) --- contrib/epee/include/net/http_server_handlers_map2.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h index 57454682..0c1a0df2 100644 --- a/contrib/epee/include/net/http_server_handlers_map2.h +++ b/contrib/epee/include/net/http_server_handlers_map2.h @@ -255,7 +255,9 @@ namespace epee { struct i_chain_handler { virtual bool handle_http_request_map(const epee::net_utils::http::http_request_info& query_info, epee::net_utils::http::http_response_info& response_info, - epee::net_utils::connection_context_base& m_conn_context, bool& call_found, documentation& docs = documentation()) = 0; + epee::net_utils::connection_context_base& m_conn_context, bool& call_found, documentation& docs = epee::net_utils::http::i_chain_handler::m_empty_documentation) = 0; + + static inline documentation m_empty_documentation; }; } } @@ -280,13 +282,13 @@ namespace epee { #define BEGIN_URI_MAP2() template bool handle_http_request_map(const epee::net_utils::http::http_request_info& query_info, \ epee::net_utils::http::http_response_info& response_info, \ - t_context& m_conn_context, bool& call_found, documentation& docs = documentation()) { \ + t_context& m_conn_context, bool& call_found, documentation& docs = epee::net_utils::http::i_chain_handler::m_empty_documentation) { \ call_found = false; \ if(false) return true; //just a stub to have "else if" #define BEGIN_URI_MAP2_VIRTUAL() virtual bool handle_http_request_map(const epee::net_utils::http::http_request_info& query_info, \ epee::net_utils::http::http_response_info& response_info, \ - epee::net_utils::connection_context_base& m_conn_context, bool& call_found, documentation& docs = documentation()) { \ + epee::net_utils::connection_context_base& m_conn_context, bool& call_found, documentation& docs = epee::net_utils::http::i_chain_handler::m_empty_documentation) { \ call_found = false; \ if(false) return true; //just a stub to have "else if"