Commit 90c6e688 authored by knowledge4igor's avatar knowledge4igor

Tiny cleanup and improvements

parent e3037c0a
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# undef CUSTOM_STRING_VIEW # undef CUSTOM_STRING_VIEW
# include <experimental/string_view> # include <experimental/string_view>
namespace std { namespace std {
typedef experimental::string_view string_view; using string_view = experimental::string_view;
} }
# endif # endif
# endif # endif
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <stdexcept> #include <stdexcept>
#include <cstring> #include <cstring>
typedef std::size_t size_type; using size_type = std::size_t ;
namespace std { namespace std {
......
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include <pistache/string_view.h> #include <pistache/string_view.h>
#include <limits>
#include <string> #include <string>
TEST(string_view_test, substr_test) { TEST(string_view_test, substr_test) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment