Skip to content

Commit

Permalink
GH-1062 Add variant_object to the exclude list of universal reference…
Browse files Browse the repository at this point in the history
… constructor of mutable_variant_object since there is an explicit constructor for it.
  • Loading branch information
heifner committed May 10, 2023
1 parent 0eec87e commit 1d33a68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/libfc/include/fc/variant_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ namespace fc

template<typename T,
typename = std::enable_if_t<!std::is_base_of<mutable_variant_object, std::decay_t<T>>::value &&
!std::is_base_of<variant, std::decay_t<T>>::value>>
!std::is_base_of<variant, std::decay_t<T>>::value &&
!std::is_base_of<variant_object, std::decay_t<T>>::value>>
explicit mutable_variant_object( T&& v )
:_key_value( new std::vector<entry>() )
{
Expand Down

0 comments on commit 1d33a68

Please sign in to comment.