Skip to content

Commit

Permalink
Simplified usage of static_variant::tag type (eliminated runtime over…
Browse files Browse the repository at this point in the history
…head)
  • Loading branch information
vogel76 committed Jul 22, 2024
1 parent d969163 commit 383a433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/protocol/include/hive/protocol/hive_operations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ namespace fc
template<typename T>
fc::variant operator()( const T& v ) const
{
return extended_variant_creator_functor< comment_options_extension >().create( v, comment_options_extension::tag<T>().value );
return extended_variant_creator_functor< comment_options_extension >().create( v, comment_options_extension::tag<T>::value );
}
};

Expand Down Expand Up @@ -1168,7 +1168,7 @@ namespace fc
template<typename T>
fc::variant operator()( const T& v ) const
{
return extended_variant_creator_functor< future_extensions >().create( v, future_extensions::tag<T>().value );
return extended_variant_creator_functor< future_extensions >().create( v, future_extensions::tag<T>::value );
}
};

Expand All @@ -1179,7 +1179,7 @@ namespace fc
template<typename T>
fc::variant operator()( const T& v ) const
{
return extended_variant_creator_functor< recurrent_transfer_extension >().create( v, recurrent_transfer_extension::tag<T>().value );
return extended_variant_creator_functor< recurrent_transfer_extension >().create( v, recurrent_transfer_extension::tag<T>::value );
}
};
}
Expand Down

0 comments on commit 383a433

Please sign in to comment.