[libcxx-commits] [PATCH] D150791: [NFC][libc++][format] Uses stringstream::view.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 23 09:53:44 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGac8349832ce2: [NFC][libc++][format] Uses stringstream::view. (authored by Mordante).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150791/new/
https://reviews.llvm.org/D150791
Files:
libcxx/include/__chrono/formatter.h
Index: libcxx/include/__chrono/formatter.h
===================================================================
--- libcxx/include/__chrono/formatter.h
+++ libcxx/include/__chrono/formatter.h
@@ -556,9 +556,7 @@
}
}
- // TODO FMT Use the stringstream's view after P0408R7 has been implemented.
- basic_string<_CharT> __str = __sstr.str();
- return __formatter::__write_string(basic_string_view<_CharT>{__str}, __ctx.out(), __specs);
+ return __formatter::__write_string(__sstr.view(), __ctx.out(), __specs);
}
} // namespace __formatter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150791.524776.patch
Type: text/x-patch
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230523/b05bd7da/attachment.bin>
More information about the libcxx-commits
mailing list