Skip to content

Commit

Permalink
Fix from EOSIO/fc#85
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel committed May 22, 2019
1 parent 67c538a commit 1f358b0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions libraries/fc/include/fc/variant_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,13 @@ namespace fc
///@}


template<typename T>
explicit mutable_variant_object( T&& v )
:_key_value( new std::vector<entry>() )
{
template<typename T,
typename = std::enable_if_t<!std::is_base_of<mutable_variant_object, std::decay_t<T>>::value>>
explicit mutable_variant_object( T&& v )
:_key_value( new std::vector<entry>() )
{
*this = variant(std::forward<T>(v)).get_object();
}
}

mutable_variant_object();

Expand Down

0 comments on commit 1f358b0

Please sign in to comment.