aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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