Don't confuse Glib::ustring with std::string
This commit is contained in:
1 parent
b50e685db9
commit
7a8b54a0ef
2 files changed
+24
-1
No files matched your search
+2
-1
@@ -441,7 +441,8 @@ struct is_std_string_like : std::false_type {};
|
||||
template <typename T>
|
||||
struct is_std_string_like<T, void_t<decltype(std::declval<T>().find_first_of(
|
||||
typename T::value_type(), 0))>>
|
||||
: std::true_type {};
|
||||
: std::is_convertible<decltype(std::declval<T>().data()),
|
||||
const typename T::value_type*> {};
|
||||
|
||||
// Returns true iff the literal encoding is UTF-8.
|
||||
constexpr auto is_utf8_enabled() -> bool {
|
||||
|
||||
Reference in new issue
Block a user