forked from boostorg/core
Add sv_find_test
This commit is contained in:
1 parent
f9fa1772f2
commit
09044f58d6
3 files changed
+132
-1
No files matched your search
@@ -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