minor code improvements in binary struct

This commit is contained in:
Max Lyon
2021-03-02 10:28:16 +01:00
parent 677bdacb99
commit f21bbed42a

View File

@@ -345,14 +345,9 @@ struct binary< std::vector< T > > {
{ {
size_t size = 0; size_t size = 0;
for(auto v : _v) for(auto v : _v)
{
size += binary<T>::size_of(v); size += binary<T>::size_of(v);
}
if(_store_size) if(_store_size)
{
unsigned int N = _v.size();
size += binary<unsigned int>::size_of(); size += binary<unsigned int>::size_of();
}
return size; return size;
} }