Skip to content

Commit 88279b2

Browse files
committed
Fix operator==(vec<sv>, vec<sv>), by including size comparison
1 parent d699866 commit 88279b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/string-main.t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace std17 {
8686

8787
inline bool operator==( std::vector<string_view> const & a, std::vector<std::string> const & b )
8888
{
89-
return std::equal( a.begin(), a.end(), b.begin() );
89+
return std::equal( a.begin(), a.end(), b.begin() ) && a.size() == b.size();
9090
}
9191

9292
inline bool operator==( std::vector<std::string> const & a, std::vector<string_view> const & b )

0 commit comments

Comments
 (0)