Merge pull request #4051 from akva2/eclmpiserializer_array

eclmpiserializer: improve array handler
This commit is contained in:
Bård Skaflestad 2022-09-02 17:09:41 +02:00 committed by GitHub
commit e3bc041909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ public:
}
}
template <class Array, bool complexType = true>
template <class Array>
void array(Array& data)
{
using T = typename Array::value_type;
@ -146,10 +146,10 @@ public:
pair(it);
else if constexpr (is_ptr<T>::value)
ptr(it);
else if constexpr (!complexType)
(*this)(it);
else
else if constexpr (has_serializeOp<T>::value)
it.serializeOp(*this);
else
(*this)(it);
}
};