aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-05-27 00:54:58 +0800
committercrupest <crupest@outlook.com>2019-05-27 00:54:58 +0800
commit3a3d0bdaaf932f6ca17f2de3447c989127bc143a (patch)
tree358b9ea6cd6dd8eedd8bc915b98a1f27d0c2dff7 /include/cru
parent9e2d63adb90c293f4bc2893b0de7655aea2ecc85 (diff)
downloadcru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.tar.gz
cru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.tar.bz2
cru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.zip
...
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/common/format.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/common/format.hpp b/include/cru/common/format.hpp
index f085635a..ecc4b30b 100644
--- a/include/cru/common/format.hpp
+++ b/include/cru/common/format.hpp
@@ -99,6 +99,6 @@ inline std::wstring_view FormatToString(const wchar_t* string,
inline std::string_view FormatToString(const char* string,
details::TypeTag<std::string>) {
- return std::string(string);
+ return std::string_view(string);
}
} // namespace cru::util