diff options
author | Greg V <greg@unrelenting.technology> | 2018-06-27 17:24:41 +0300 |
---|---|---|
committer | Greg V <greg@unrelenting.technology> | 2018-06-27 17:24:41 +0300 |
commit | 06322fd510f3899f7a6c743760528333d9f28506 (patch) | |
tree | f911a7a02b17a9cf6ea4b30d98157336249f96b5 /src/main.cpp | |
parent | b03d61ed130dad6fa88a3beb4c32e48f86fdf84e (diff) | |
download | mrust-06322fd510f3899f7a6c743760528333d9f28506.tar.gz |
Move src/include/string_view.hpp into own namespace
libc++ offers std::string_view regardless of -std flag, so defining
a custom std::string_view results in a conflict.
This one is actually not a precise clone of the real one (uses two
pointers instead of pointer+length).
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 75c078ee..8f2740fc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1077,14 +1077,14 @@ ProgramParams::ProgramParams(int argc, char *argv[]) { const char* end = strchr(a, ':'); - ::std::string_view s; + ::stdx::string_view s; if( end ) { - s = ::std::string_view { a, end }; + s = ::stdx::string_view { a, end }; a = end + 1; } else { end = a + strlen(a); - s = ::std::string_view { a, end }; + s = ::stdx::string_view { a, end }; a = end; } |