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:
Marshall Clow
2014-07-02 15:45:57 +00:00
parent 2f9e714071
commit 3a61b30f3a
9 changed files with 46 additions and 45 deletions

View File

@@ -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());