From e46160c18ec633ee7f20d1d32df85c783bba18f6 Mon Sep 17 00:00:00 2001 From: Kosov Eugene Date: Mon, 28 Sep 2015 23:20:28 +0300 Subject: [PATCH] it's better to pass a small (e.g. 16 bytes) object by value then by const reference --- include/string_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/string_view.h b/include/string_view.h index e683c7a..164c3ac 100644 --- a/include/string_view.h +++ b/include/string_view.h @@ -137,7 +137,7 @@ basic_string_view::type, dy // to_string() allow (explicit) conversions from string_view to string // template -std::basic_string::type> to_string(const basic_string_view& view) +std::basic_string::type> to_string(basic_string_view view) { return{ view.data(), view.length() }; }