From 01f84b0e5395043debc22a6b5be58cef24a885fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Sep 2017 17:13:45 +0200 Subject: [PATCH] util/StringView: add struct WStringView --- src/util/StringView.cxx | 4 ++++ src/util/StringView.hxx | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/src/util/StringView.cxx b/src/util/StringView.cxx index b663291d8..083cab103 100644 --- a/src/util/StringView.cxx +++ b/src/util/StringView.cxx @@ -47,3 +47,7 @@ BasicStringView::StripRight() noexcept } template struct BasicStringView; + +#ifdef _UNICODE +template struct BasicStringView; +#endif diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index a894569c6..21ba1f80f 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -114,4 +114,12 @@ struct StringView : BasicStringView { using BasicStringView::BasicStringView; }; +#ifdef _UNICODE + +struct WStringView : BasicStringView { + using BasicStringView::BasicStringView; +}; + +#endif + #endif