This repository was archived by the owner on Aug 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Cannot compare equality of tiny_utf8::basic_string and tiny_utf8::iterator #79
Copy link
Copy link
Open
Description
I get a compile error in test_manipulation.cpp
line 101 when I attempt to run the tests (specifically, EXPECT_EQ(res1, str.end());
). I tried to add additional operator overloads in tinyutf8.h, but without success.
This is on macOS with Clang 17.0.0 using the C++ versions configured in the project's CMake.
λ make
[ 10%] Building CXX object test/CMakeFiles/tinyutf8_test.dir/src/test_manipulation.cpp.o
In file included from /path/to/tiny-utf8/test/src/test_manipulation.cpp:1:
/usr/local/include/gtest/gtest.h:1394:11: error: invalid operands to binary expression ('const tiny_utf8::basic_string<>' and 'const tiny_utf8::iterator<tiny_utf8::basic_string<>>')
1394 | if (lhs == rhs) {
| ~~~ ^ ~~~
/usr/local/include/gtest/gtest.h:1413:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<tiny_utf8::basic_string<>, tiny_utf8::iterator<tiny_utf8::basic_string<>>>' requested here
1413 | return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
| ^
/path/to/tiny-utf8/test/src/test_manipulation.cpp:101:2: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<tiny_utf8::basic_string<>, tiny_utf8::iterator<tiny_utf8::basic_string<>>, nullptr>' requested here
101 | EXPECT_EQ(res1, str.end());
| ^
/usr/local/include/gtest/gtest.h:1885:54: note: expanded from macro 'EXPECT_EQ'
1885 | EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__variant/monostate.h:28:45: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to 'monostate' for 1st argument
28 | _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(monostate, monostate) noexcept { return true; }
| ^ ~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/error_condition.h:96:35: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to 'const error_condition' for 1st argument
96 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const error_condition& __x, const error_condition& __y) _NOEXCEPT {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/error_code.h:92:35: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to 'const error_code' for 1st argument
92 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const error_code& __x, const error_code& __y) _NOEXCEPT {
| ^ ~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/error_code.h:96:35: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to 'const error_code' for 1st argument
96 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const error_code& __x, const error_condition& __y) _NOEXCEPT {
| ^ ~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/error_code.h:101:35: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to 'const error_condition' for 1st argument
101 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const error_condition& __x, const error_code& __y) _NOEXCEPT {
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__thread/id.h:78:35: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to '__thread_id' for 1st argument
78 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(__thread_id __x, __thread_id __y) _NOEXCEPT {
| ^ ~~~~~~~~~~~~~~~
/usr/local/include/gtest/gtest.h:1386:13: note: candidate function not viable: no known conversion from 'const tiny_utf8::basic_string<>' to 'faketype' for 1st argument
1386 | inline bool operator==(faketype, faketype) { return true; }
| ^ ~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:253:1: note: candidate template ignored: could not match 'allocator' against 'tiny_utf8::iterator'
253 | operator==(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/pair.h:492:1: note: candidate template ignored: could not match 'pair' against 'tiny_utf8::basic_string'
492 | operator==(const pair<_T1, _T2>& __x, const pair<_U1, _U2>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/reverse_iterator.h:206:1: note: candidate template ignored: could not match 'reverse_iterator' against 'tiny_utf8::basic_string'
206 | operator==(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y)
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:497:1: note: candidate template ignored: could not match 'unique_ptr' against 'tiny_utf8::basic_string'
497 | operator==(const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:543:1: note: candidate template ignored: could not match 'unique_ptr' against 'tiny_utf8::basic_string'
543 | operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:549:35: note: candidate template ignored: could not match 'unique_ptr' against 'tiny_utf8::iterator'
549 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:1125:35: note: candidate template ignored: could not match 'shared_ptr' against 'tiny_utf8::basic_string'
1125 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:1171:35: note: candidate template ignored: could not match 'shared_ptr' against 'tiny_utf8::basic_string'
1171 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:1178:35: note: candidate template ignored: could not match 'shared_ptr' against 'tiny_utf8::iterator'
1178 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:1150:1: note: candidate template ignored: could not match 'tuple' against 'tiny_utf8::basic_string'
1150 | operator==(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/istream_iterator.h:86:35: note: candidate template ignored: could not match 'istream_iterator' against 'tiny_utf8::basic_string'
86 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const istream_iterator<_Tp, _CharT, _Traits, _Distance>& __x,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/istreambuf_iterator.h:95:1: note: candidate template ignored: could not match 'istreambuf_iterator' against 'tiny_utf8::basic_string'
95 | operator==(const istreambuf_iterator<_CharT, _Traits>& __a, const istreambuf_iterator<_CharT, _Traits>& __b) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/move_iterator.h:255:1: note: candidate template ignored: could not match 'move_iterator' against 'tiny_utf8::basic_string'
255 | operator==(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:115:1: note: candidate template ignored: could not match '__wrap_iter' against 'tiny_utf8::basic_string'
115 | operator==(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter1>& __y) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/wrap_iter.h:121:1: note: candidate template ignored: could not match '__wrap_iter' against 'tiny_utf8::basic_string'
121 | operator==(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/variant:1468:38: note: candidate template ignored: could not match 'variant' against 'tiny_utf8::basic_string'
1468 | _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__ios/fpos.h:65:35: note: candidate template ignored: could not match 'fpos' against 'tiny_utf8::basic_string'
65 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const fpos<_StateT>& __x, const fpos<_StateT>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:733:1: note: candidate template ignored: could not match 'basic_string_view' against 'tiny_utf8::basic_string'
733 | operator==(basic_string_view<_CharT, _Traits> __lhs, basic_string_view<_CharT, _Traits> __rhs) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:743:1: note: candidate template ignored: could not match 'basic_string_view' against 'tiny_utf8::basic_string'
743 | operator==(basic_string_view<_CharT, _Traits> __lhs,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string_view:752:1: note: candidate template ignored: could not match 'basic_string_view' against 'tiny_utf8::iterator'
752 | operator==(__type_identity_t<basic_string_view<_CharT, _Traits> > __lhs,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:987:1: note: candidate template ignored: could not match 'optional' against 'tiny_utf8::basic_string'
987 | operator==(const optional<_Tp>& __x, const optional<_Up>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1069:38: note: candidate template ignored: could not match 'optional' against 'tiny_utf8::basic_string'
1069 | _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(const optional<_Tp>& __x, nullopt_t) noexcept {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1076:38: note: candidate template ignored: could not match 'optional' against 'tiny_utf8::iterator'
1076 | _LIBCPP_HIDE_FROM_ABI constexpr bool operator==(nullopt_t, const optional<_Tp>& __x) noexcept {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1144:1: note: candidate template ignored: could not match 'optional' against 'tiny_utf8::basic_string'
1144 | operator==(const optional<_Tp>& __x, const _Up& __v) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1152:1: note: candidate template ignored: could not match 'optional' against 'tiny_utf8::iterator'
1152 | operator==(const _Tp& __v, const optional<_Up>& __x) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3823:1: note: candidate template ignored: could not match 'basic_string' against 'tiny_utf8::basic_string'
3823 | operator==(const basic_string<_CharT, _Traits, _Allocator>& __lhs,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3835:1: note: candidate template ignored: could not match 'basic_string' against 'tiny_utf8::basic_string'
3835 | operator==(const basic_string<char, char_traits<char>, _Allocator>& __lhs,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3846:1: note: candidate template ignored: could not match 'const _CharT *' against 'tiny_utf8::basic_string<>'
3846 | operator==(const _CharT* __lhs, const basic_string<_CharT, _Traits, _Allocator>& __rhs) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:3858:1: note: candidate template ignored: could not match 'basic_string' against 'tiny_utf8::basic_string'
3858 | operator==(const basic_string<_CharT, _Traits, _Allocator>& __lhs, const _CharT* __rhs) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/array:389:1: note: candidate template ignored: could not match 'array' against 'tiny_utf8::basic_string'
389 | operator==(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/deque:2522:35: note: candidate template ignored: could not match 'deque' against 'tiny_utf8::basic_string'
2522 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const deque<_Tp, _Allocator>& __x, const deque<_Tp, _Allocator>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:1014:35: note: candidate template ignored: could not match 'function' against 'tiny_utf8::basic_string'
1014 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const function<_Rp(_ArgTypes...)>& __f, nullptr_t) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/function.h:1021:35: note: candidate template ignored: could not match 'function' against 'tiny_utf8::iterator'
1021 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(nullptr_t, const function<_Rp(_ArgTypes...)>& __f) _NOEXCEPT {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:1803:28: note: candidate template ignored: could not match 'unordered_map' against 'tiny_utf8::basic_string'
1803 | _LIBCPP_HIDE_FROM_ABI bool operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/unordered_map:2489:28: note: candidate template ignored: could not match 'unordered_multimap' against 'tiny_utf8::basic_string'
2489 | _LIBCPP_HIDE_FROM_ABI bool operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:2907:1: note: candidate template ignored: could not match 'vector' against 'tiny_utf8::basic_string'
2907 | operator==(const vector<_Tp, _Allocator>& __x, const vector<_Tp, _Allocator>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/queue:463:35: note: candidate template ignored: could not match 'queue' against 'tiny_utf8::basic_string'
463 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const queue<_Tp, _Container>& __x, const queue<_Tp, _Container>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/stack:319:35: note: candidate template ignored: could not match 'stack' against 'tiny_utf8::basic_string'
319 | inline _LIBCPP_HIDE_FROM_ABI bool operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/set:955:1: note: candidate template ignored: could not match 'set' against 'tiny_utf8::basic_string'
955 | operator==(const set<_Key, _Compare, _Allocator>& __x, const set<_Key, _Compare, _Allocator>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/set:1414:1: note: candidate template ignored: could not match 'multiset' against 'tiny_utf8::basic_string'
1414 | operator==(const multiset<_Key, _Compare, _Allocator>& __x, const multiset<_Key, _Compare, _Allocator>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/forward_list:1472:28: note: candidate template ignored: could not match 'forward_list' against 'tiny_utf8::basic_string'
1472 | _LIBCPP_HIDE_FROM_ABI bool operator==(const forward_list<_Tp, _Alloc>& __x, const forward_list<_Tp, _Alloc>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:1579:1: note: candidate template ignored: could not match 'map' against 'tiny_utf8::basic_string'
1579 | operator==(const map<_Key, _Tp, _Compare, _Allocator>& __x, const map<_Key, _Tp, _Compare, _Allocator>& __y) {
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/map:2092:1: note: candidate template ignored: could not match 'multimap' against 'tiny_utf8::basic_string'
2092 | operator==(const multimap<_Key, _Tp, _Compare, _Allocator>& __x, const multimap<_Key, _Tp, _Compare, _Allocator>& __y) {
| ^
/path/to/tiny-utf8/include/tinyutf8/tinyutf8.h:2596:15: note: candidate function not viable: no known conversion from 'const tiny_utf8::iterator<tiny_utf8::basic_string<>>' to 'const basic_string<>' for 1st argument
2596 | inline bool operator==( const basic_string& str ) const noexcept { return compare( str ) == 0; }
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
/path/to/tiny-utf8/include/tinyutf8/tinyutf8.h:2598:15: note: candidate function not viable: no known conversion from 'const tiny_utf8::iterator<tiny_utf8::basic_string<>>' to 'const std::string' (aka 'const basic_string<char>') for 1st argument
2598 | inline bool operator==( const std::string& str ) const noexcept { return compare( str ) == 0; }
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/path/to/tiny-utf8/include/tinyutf8/tinyutf8.h:2600:59: note: candidate template ignored: requirement 'std::is_pointer<const tiny_utf8::iterator<tiny_utf8::basic_string<char32_t, char, std::allocator<char>>, false>>::value' was not satisfied [with T = const tiny_utf8::iterator<tiny_utf8::basic_string<>> &]
2600 | template<typename T> inline enable_if_ptr<T, data_type> operator==( T&& str ) const noexcept { return compare( str ) == 0; }
| ^
/path/to/tiny-utf8/include/tinyutf8/tinyutf8.h:2602:60: note: candidate template ignored: requirement 'std::is_pointer<const tiny_utf8::iterator<tiny_utf8::basic_string<char32_t, char, std::allocator<char>>, false>>::value' was not satisfied [with T = const tiny_utf8::iterator<tiny_utf8::basic_string<>> &]
2602 | template<typename T> inline enable_if_ptr<T, value_type> operator==( T&& str ) const noexcept { return compare( str ) == 0; }
| ^
/path/to/tiny-utf8/include/tinyutf8/tinyutf8.h:2604:42: note: candidate template ignored: could not match 'const data_type[LITLEN]' (aka 'const char[LITLEN]') against 'const tiny_utf8::iterator<tiny_utf8::basic_string<>>'
2604 | template<size_type LITLEN> inline bool operator==( const data_type (&str)[LITLEN] ) const noexcept { return compare( str ) == 0; }
| ^
/path/to/tiny-utf8/include/tinyutf8/tinyutf8.h:2606:42: note: candidate template ignored: could not match 'const value_type[LITLEN]' (aka 'const char32_t[LITLEN]') against 'const tiny_utf8::iterator<tiny_utf8::basic_string<>>'
2606 | template<size_type LITLEN> inline bool operator==( const value_type (&str)[LITLEN] ) const noexcept { return compare( str ) == 0; }
| ^
1 error generated.
make[2]: *** [test/CMakeFiles/tinyutf8_test.dir/src/test_manipulation.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/tinyutf8_test.dir/all] Error 2
make: *** [all] Error 2
Metadata
Metadata
Assignees
Labels
No labels