Skip to content

Commit f63fe29

Browse files
committed
Avoid warning on parenthesis with gcc's -Wall (#89, thanks @Pesa)
1 parent f937564 commit f63fe29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/nonstd/span.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ class span
11641164
: data_( other.data() )
11651165
, size_( other.size() )
11661166
{
1167-
span_EXPECTS( Extent == dynamic_extent || Extent != dynamic_extent && other.size() == to_size(Extent) );
1167+
span_EXPECTS( (Extent == dynamic_extent) || (Extent != dynamic_extent && other.size() == to_size(Extent)) );
11681168
}
11691169

11701170
// 26.7.3.3 Subviews [span.sub]

0 commit comments

Comments
 (0)