From 4be4494ad4009849be81fb4761978420d31def1f Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Mon, 28 Aug 2023 20:31:27 +0200 Subject: [PATCH] few fixes to solve linux build --- contrib/epee/include/misc_language.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index 0044788a..83392f4c 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -464,7 +464,7 @@ namespace misc_utils template struct callback_entry { - std::shared_ptr > m_cb; + std::shared_ptr > m_cb; }; std::map m_callbacks; @@ -479,7 +479,7 @@ namespace misc_utils throw std::runtime_error("Handler for this type already registered"); } - callback_entry cb_entry = { epee::misc_utils::build_abstract_callback_param(cb) }; + callback_entry cb_entry = { epee::misc_utils::build_abstract_callback_param(cb) }; m_callbacks[ti] = cb_entry; } @@ -497,13 +497,13 @@ namespace misc_utils template - void RAISE_DEBUG_EVENT(param_t& p) + void RAISE_DEBUG_EVENT(const param_t& p) { std::type_index ti = typeid(param_t); auto it = m_callbacks.find(ti); if (it != m_callbacks.end()) { - callback_entry* pcallback_entry = boost::any_cast>(&it->second); + callback_entry* pcallback_entry = boost::any_cast>(&it->second); if (!pcallback_entry) { throw std::runtime_error("Unexpected error: registered tipe holding something else in boost::eny");