Span: Fix odd condition in Span::empty.

pull/7828/head
Vincent Coubard 2018-08-20 10:30:35 +01:00
parent 43170d21bf
commit 3fb3173876
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ struct Span {
*/
bool empty() const
{
return size() ? false : true;
return size() == 0;
}
/**
@ -281,7 +281,7 @@ struct Span<T, SPAN_DYNAMIC_EXTENT> {
*/
bool empty() const
{
return size() ? false : true;
return size() == 0;
}
/**