mirror of
https://github.com/boostorg/core.git
synced 2025-11-30 06:09:56 +01:00
Add sv_find_test
This commit is contained in:
@@ -351,7 +351,7 @@ public:
|
||||
p = traits_type::find( p, last - p, s[0] );
|
||||
|
||||
if( p == 0 ) break;
|
||||
if( last - p < n ) break;
|
||||
if( static_cast<size_type>( last - p ) < n ) break;
|
||||
|
||||
if( traits_type::compare( p, s, n ) == 0 ) return p - data();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user