over-simplified template syntax to please gcc
This commit is contained in:
parent
f43cd585c7
commit
bb4cc18c55
1 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ namespace bc_services
|
|||
return t.type();
|
||||
}
|
||||
template<typename t_return_type, typename t_type>
|
||||
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_return_type>(t);
|
||||
}
|
||||
|
|
@ -41,7 +41,7 @@ namespace bc_services
|
|||
return typeid(t);
|
||||
}
|
||||
template<typename t_return_type, typename t_type>
|
||||
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<is_boost_variant<typename t_attachment_type_container_t::value_type>::value>::get_type(item) == typeid(currency::tx_service_attachment))
|
||||
{
|
||||
const currency::tx_service_attachment& tsa = type_selector<is_boost_variant<typename t_attachment_type_container_t::value_type>::value>::get<currency::tx_service_attachment>(item);
|
||||
const currency::tx_service_attachment& tsa = type_selector<is_boost_variant<typename t_attachment_type_container_t::value_type>::value>::get(item, currency::tx_service_attachment());
|
||||
//const currency::tx_service_attachment& tsa = boost::get<currency::tx_service_attachment>(item);
|
||||
if (tsa.service_id == id && tsa.instruction == instruction)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue