minor code improvements in binary struct
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user