PR libstdc++/81912 make std::__iterator_category constexpr
commit2c0378f467abaa9190d52c3930ec4c825416f72f
authorJonathan Wakely <jwakely@redhat.com>
Mon, 21 Aug 2017 15:14:27 +0000 (21 16:14 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 21 Aug 2017 15:14:27 +0000 (21 16:14 +0100)
tree122232e29c3a90ca99d53e083f662d9f3949f55a
parentb66fd4fc3777e1d072a63529b70b2ff777e6efcb
PR libstdc++/81912 make std::__iterator_category constexpr

PR libstdc++/81912
* include/bits/stl_iterator_base_types.h (__iterator_category): Add
constexpr for C++11 and later.
* testsuite/24_iterators/container_access.cc: Add target selector.
* testsuite/24_iterators/range_access.cc: Fix clause number in
comment.
* testsuite/24_iterators/range_access_cpp14.cc: Likewise.
* testsuite/24_iterators/range_access_cpp17.cc: New.

From-SVN: r251234
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator_base_types.h
libstdc++-v3/testsuite/24_iterators/container_access.cc
libstdc++-v3/testsuite/24_iterators/range_access.cc
libstdc++-v3/testsuite/24_iterators/range_access_cpp14.cc
libstdc++-v3/testsuite/24_iterators/range_access_cpp17.cc [new file with mode: 0644]