Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #27 from elmato/26-variant_deserialization_fix
Browse files Browse the repository at this point in the history
Fix #26 fc::variant deserialization of boost::multiprecision::number<T>
  • Loading branch information
nathanielhourt authored Jun 6, 2017
2 parents 7072c6f + 196a681 commit 3786289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/fc/include/fc/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ namespace fc
v = std::string(n);
}
template<typename T> void from_variant( const variant& v, boost::multiprecision::number<T>& n ) {
n = decltype(n)(v.get_string());
n = boost::multiprecision::number<T>(v.get_string());
}

variant operator + ( const variant& a, const variant& b );
Expand Down

0 comments on commit 3786289

Please sign in to comment.