]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Make _GLIBCXX_CONCEPT_CHECKS more constexpr-friendly
authorJonathan Wakely <jwakely@redhat.com>
Thu, 27 Feb 2020 10:52:28 +0000 (10:52 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 27 Feb 2020 10:52:28 +0000 (10:52 +0000)
commiteb8e6a30a442c4c12dc903d6e1817b223bbed4a3
tree87fc8aab9f869a67c4110442cf53d2443d33b6f4
parentd12153046816f955e74943af7089d30de6a00e19
libstdc++: Make _GLIBCXX_CONCEPT_CHECKS more constexpr-friendly

Although most of the old-style "concept checks" are only really usable
with C++98 because they enforce the wrong things, this is a simple
change that makes them a bit more useful for C++14 and up.

* include/bits/boost_concept_check.h (__function_requires): Add
_GLIBCXX14_CONSTEXPR.
* testsuite/25_algorithms/min/concept_checks.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/boost_concept_check.h
libstdc++-v3/testsuite/25_algorithms/min/concept_checks.cc [new file with mode: 0644]
This page took 0.060052 seconds and 5 git commands to generate.