1
0
forked from boostorg/core

Add sv_find_first_of_test

This commit is contained in:
Peter Dimov
2021-10-08 05:39:24 +03:00
parent 95e64ef71f
commit 09870f0739
3 changed files with 163 additions and 1 deletions

View File

@@ -563,7 +563,7 @@ public:
BOOST_CONSTEXPR bool contains( Ch c ) const BOOST_NOEXCEPT
{
return traits_type::find( data(), size(), c ) == 0;
return traits_type::find( data(), size(), c ) != 0;
}
BOOST_CONSTEXPR bool contains( Ch const* s ) const BOOST_NOEXCEPT