Skip to content

Commit f3effcb

Browse files
committed
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.
1 parent 03b476f commit f3effcb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ctl/string.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ class string
226226
append(s.p, s.n);
227227
}
228228

229-
// TODO(mrdomino): explicit?
230229
inline operator string_view() const noexcept
231230
{
232231
return string_view(data(), size());

0 commit comments

Comments
 (0)