Minor cleanup for string_view; mostly from suggestions by Richard Smith. Also, make the tests pass under c++03
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@212185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -41,10 +41,10 @@ test(S s)
|
||||
|
||||
int main()
|
||||
{
|
||||
using string_view = std::experimental::string_view;
|
||||
using u16string_view = std::experimental::u16string_view;
|
||||
using u32string_view = std::experimental::u32string_view;
|
||||
using wstring_view = std::experimental::wstring_view;
|
||||
typedef std::experimental::string_view string_view;
|
||||
typedef std::experimental::u16string_view u16string_view;
|
||||
typedef std::experimental::u32string_view u32string_view;
|
||||
typedef std::experimental::wstring_view wstring_view;
|
||||
|
||||
test(string_view ());
|
||||
test(u16string_view());
|
||||
|
Reference in New Issue
Block a user