From bb4cc18c5524a1e5c19c67067a515de9aa46e516 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Mon, 19 Feb 2024 00:01:32 +0400 Subject: [PATCH] over-simplified template syntax to please gcc --- src/currency_core/bc_attachments_helpers_basic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/currency_core/bc_attachments_helpers_basic.h b/src/currency_core/bc_attachments_helpers_basic.h index 4c44079f..d14e543b 100644 --- a/src/currency_core/bc_attachments_helpers_basic.h +++ b/src/currency_core/bc_attachments_helpers_basic.h @@ -26,7 +26,7 @@ namespace bc_services return t.type(); } template - static const t_return_type& get(const t_type& t) + static const t_return_type& get(const t_type& t, const t_return_type& dummy) { return boost::get(t); } @@ -41,7 +41,7 @@ namespace bc_services return typeid(t); } template - static const t_return_type& get(const t_type& t) + static const t_return_type& get(const t_type& t, const t_return_type& dummy) { return t; } @@ -54,7 +54,7 @@ namespace bc_services { if (/*item.type()*/ type_selector::value>::get_type(item) == typeid(currency::tx_service_attachment)) { - const currency::tx_service_attachment& tsa = type_selector::value>::get(item); + const currency::tx_service_attachment& tsa = type_selector::value>::get(item, currency::tx_service_attachment()); //const currency::tx_service_attachment& tsa = boost::get(item); if (tsa.service_id == id && tsa.instruction == instruction) {