[libcxx-commits] [PATCH] D152092: [libc++][format] Adds formattable-with concept.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jun 4 02:28:36 PDT 2023


Mordante created this revision.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This change has a few additional effects:

- Abstract classes are now formattable.
- Volatile objects are no longer formattable.

The not yet accepted LWG-issue is implemented since they fix a bug in
LWG3631.

Implements

- LWG3631 basic_format_arg(T&&) should use remove_cvref_t<T> throughout
- LWG3925 Concept formattable's definition is incorrect


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152092

Files:
  libcxx/docs/ReleaseNotes.rst
  libcxx/docs/Status/Cxx23Issues.csv
  libcxx/docs/Status/Cxx2cIssues.csv
  libcxx/include/__format/concepts.h
  libcxx/include/__format/format_arg.h
  libcxx/include/__format/format_arg_store.h
  libcxx/include/__format/formatter_string.h
  libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp
  libcxx/test/std/utilities/format/format.tuple/format.functions.tests.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152092.528194.patch
Type: text/x-patch
Size: 14162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230604/852032ae/attachment-0001.bin>


More information about the libcxx-commits mailing list