add complexType template parameter to EclMpiSerializer::vector

set to false if vector contains a type without a serializeOp
This commit is contained in:
Arne Morten Kvarving 2020-03-18 11:54:22 +01:00
parent eb53bb0db9
commit c86cfbd83a

View File

@ -52,7 +52,7 @@ public:
}
}
template<class T>
template<class T, bool complexType = true>
void vector(std::vector<T>& data)
{
auto handle = [&](auto& d)
@ -62,6 +62,8 @@ public:
pair(it);
else if constexpr (is_ptr<T>::value)
ptr(it);
else if constexpr (!complexType)
(*this)(it);
else
it.serializeOp(*this);
}