]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstc++: std::formattable concept should not be defined for C++20
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Nov 2022 13:59:51 +0000 (13:59 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 15 Nov 2022 14:01:39 +0000 (14:01 +0000)
commita5d4f38fbe3bf71efd465d5260955bd6675765fd
treebff9cce1e7f2b221033c71102c35a62618940df2
parentce86d9678b7f3d914133a035fbf8088504d8bad8
libstc++: std::formattable concept should not be defined for C++20

This concept was added by a C++23 proposal, so don't define it for
C++20.

Split the format/formatter/formatter.cc test into two parts, one that
tests the C++20 requirements and one that tests the C++23 concept.

libstdc++-v3/ChangeLog:

* include/std/format (formattable): Only define for C++23/
* testsuite/std/format/formatter.cc: Moved to...
* testsuite/std/format/formatter/requirements.cc: ...here.
* testsuite/std/format/formatter/concept.cc: New test.
* testsuite/std/format/functions/format.cc: Replace use of
std::formattable in C++20.
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/formatter/concept.cc [new file with mode: 0644]
libstdc++-v3/testsuite/std/format/formatter/requirements.cc [moved from libstdc++-v3/testsuite/std/format/formatter.cc with 50% similarity]
libstdc++-v3/testsuite/std/format/functions/format.cc