Skip to content

Commit

Permalink
Make sure mutable_variant_object's templated constructor doesn't get …
Browse files Browse the repository at this point in the history
…called to make a copy.

Issue seen on GCC 7 -std=c++1z
Fix by Kevin Heifner
  • Loading branch information
mitza-oci authored and heifner committed Apr 26, 2019
1 parent 456b588 commit f5b1741
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/fc/variant_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ namespace fc
///@}


template<typename T>
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>() )
{
Expand Down

0 comments on commit f5b1741

Please sign in to comment.