Commit 4f053f22 authored by Paul's avatar Paul
Browse files

Fix serialization

parent cefe7988
......@@ -215,8 +215,7 @@ void from_value_impl(rank<6>, const value& v, optional<T>& x)
template <class T, MIGRAPHX_REQUIRES(std::is_arithmetic<T>{})>
void from_value_impl(rank<7>, const value& v, T& x)
{
if(not v.is_null())
x = from_value<T>(v);
x = v.to<T>();
}
template <class T, MIGRAPHX_REQUIRES(std::is_enum<T>{})>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment