From 383a43388f485a4b9caa78cc87cd1dcd41070917 Mon Sep 17 00:00:00 2001 From: Bartek Wrona Date: Tue, 23 Jul 2024 00:56:29 +0200 Subject: [PATCH] Simplified usage of static_variant::tag type (eliminated runtime overhead) --- .../protocol/include/hive/protocol/hive_operations.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/protocol/include/hive/protocol/hive_operations.hpp b/libraries/protocol/include/hive/protocol/hive_operations.hpp index 282c2a717a..3a3424e759 100644 --- a/libraries/protocol/include/hive/protocol/hive_operations.hpp +++ b/libraries/protocol/include/hive/protocol/hive_operations.hpp @@ -1137,7 +1137,7 @@ namespace fc template fc::variant operator()( const T& v ) const { - return extended_variant_creator_functor< comment_options_extension >().create( v, comment_options_extension::tag().value ); + return extended_variant_creator_functor< comment_options_extension >().create( v, comment_options_extension::tag::value ); } }; @@ -1168,7 +1168,7 @@ namespace fc template fc::variant operator()( const T& v ) const { - return extended_variant_creator_functor< future_extensions >().create( v, future_extensions::tag().value ); + return extended_variant_creator_functor< future_extensions >().create( v, future_extensions::tag::value ); } }; @@ -1179,7 +1179,7 @@ namespace fc template fc::variant operator()( const T& v ) const { - return extended_variant_creator_functor< recurrent_transfer_extension >().create( v, recurrent_transfer_extension::tag().value ); + return extended_variant_creator_functor< recurrent_transfer_extension >().create( v, recurrent_transfer_extension::tag::value ); } }; }