You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While compiling NFIQ2 with NDK for andorid I encounter with belo problem
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:746:43: error: implicit instantiation of undefined template 'std::char_traits'
746 | static_assert((is_same<_CharT, typename traits_type::char_type>::value),
| ^
/home/Downloads/NFIQ2/NFIQ2/NFIQ2Algorithm/include/nfiq2_data.hpp:24:21: note: in instantiation of template class 'std::basic_string' requested here
24 | class Data : public std::basic_string<uint8_t> {
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
In file included from /home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:627:
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string_view:299:43: error: implicit instantiation of undefined template 'std::char_traits'
299 | static_assert((is_same<_CharT, typename traits_type::char_type>::value),
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__type_traits/is_convertible.h:22:102: note: in instantiation of template class 'std::basic_string_view' requested here
22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:704:29: note: in instantiation of template class 'std::is_convertible<const std::basic_string &, std::basic_string_view>' requested here
704 | : public _BoolConstant< is_convertible<const _Tp&, basic_string_view<_CharT, _Traits> >::value &&
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:1136:27: note: in instantiation of template class 'std::__can_be_converted_to_string_view<unsigned char, std::char_traits, std::basic_string>' requested here
1136 | __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:1139:47: note: while substituting prior template arguments into non-type template parameter [with _Tp = std::basic_string]
1139 | _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string& operator=(const _Tp& __t) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
This traits_type is not defined.
Can anyone provide the solution for it.
I have tried gnu++11, gnu++17, c++11, & c++17 but it has nothing to do with it.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
While compiling NFIQ2 with NDK for andorid I encounter with belo problem
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:746:43: error: implicit instantiation of undefined template 'std::char_traits'
746 | static_assert((is_same<_CharT, typename traits_type::char_type>::value),
| ^
/home/Downloads/NFIQ2/NFIQ2/NFIQ2Algorithm/include/nfiq2_data.hpp:24:21: note: in instantiation of template class 'std::basic_string' requested here
24 | class Data : public std::basic_string<uint8_t> {
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
In file included from /home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:627:
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string_view:299:43: error: implicit instantiation of undefined template 'std::char_traits'
299 | static_assert((is_same<_CharT, typename traits_type::char_type>::value),
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__type_traits/is_convertible.h:22:102: note: in instantiation of template class 'std::basic_string_view' requested here
22 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:704:29: note: in instantiation of template class 'std::is_convertible<const std::basic_string &, std::basic_string_view>' requested here
704 | : public _BoolConstant< is_convertible<const _Tp&, basic_string_view<_CharT, _Traits> >::value &&
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:1136:27: note: in instantiation of template class 'std::__can_be_converted_to_string_view<unsigned char, std::char_traits, std::basic_string>' requested here
1136 | __enable_if_t<__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value &&
| ^
/home/Downloads/android-ndk-r28b/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:1139:47: note: while substituting prior template arguments into non-type template parameter [with _Tp = std::basic_string]
1139 | _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string& operator=(const _Tp& __t) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
This traits_type is not defined.
Can anyone provide the solution for it.
I have tried gnu++11, gnu++17, c++11, & c++17 but it has nothing to do with it.
The text was updated successfully, but these errors were encountered: