From f3effcb7036fb00b08d66d6a4eff57003a7bdad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Thu, 6 Jun 2024 18:01:26 -0700 Subject: [PATCH] One more SSO erratum from #1199 Making a string_view from a string appears to take about 1.3ns no matter what. 100% definitely no point deviating from the STL API over that. --- ctl/string.h | 1 - 1 file changed, 1 deletion(-) diff --git a/ctl/string.h b/ctl/string.h index 5b74bc27b..858b7a224 100644 --- a/ctl/string.h +++ b/ctl/string.h @@ -226,7 +226,6 @@ class string append(s.p, s.n); } - // TODO(mrdomino): explicit? inline operator string_view() const noexcept { return string_view(data(), size());