fix size_of in binary<vector>

This commit is contained in:
Max Lyon
2021-03-15 14:15:37 +01:00
parent 7f6e86ff62
commit 453b5eba67

View File

@@ -338,7 +338,7 @@ struct binary< std::vector< T > > {
if(binary<T>::size_of() != IO::UnknownSize)
{
unsigned int N = _v.size();
auto res = sizeof(elem_type)*_v.size() + (_store_size? sizeof(decltype(N)) : 0);
auto res = binary<T>::size_of()*_v.size() + (_store_size? sizeof(decltype(N)) : 0);
return res;
}
else