|
|
@ -14,6 +14,7 @@ namespace pEp |
|
|
|
|
|
|
|
typedef std::string_view string_view; |
|
|
|
typedef std::u16string_view u16string_view; |
|
|
|
typedef std::u32string_view u32string_view; |
|
|
|
} |
|
|
|
|
|
|
|
#else // in C++11 / C++14 use boost::string_view instead.
|
|
|
@ -26,6 +27,7 @@ namespace pEp |
|
|
|
|
|
|
|
typedef boost::string_view string_view; |
|
|
|
typedef boost::u16string_view u16string_view; |
|
|
|
typedef boost::u32string_view u32string_view; |
|
|
|
|
|
|
|
// boost::string_view does not provide these operations, neither by boost nor by the stdlib. :-(
|
|
|
|
template<class CharT> |
|
|
|