[libcxx-commits] [PATCH] D121138: [libc++][format] Adds formatter<charT[N], charT>.
Victor Zverovich via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 27 07:41:59 PDT 2022
vitaut added inline comments.
================
Comment at: libcxx/include/__format/formatter_string.h:105-107
+template <__formatter::__char_type _CharT, size_t _Size>
+struct _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FORMAT formatter<_CharT[_Size], _CharT>
+ : public __format_spec::__formatter_string<_CharT> {
----------------
I suggest adding a static assert that `_CharT` is non-const.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121138/new/
https://reviews.llvm.org/D121138
More information about the libcxx-commits
mailing list