Add concept checks to std::next and std::prev.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 3 Sep 2015 14:35:43 +0000 (15:35 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 3 Sep 2015 14:35:43 +0000 (15:35 +0100)
commit500dc9a6c335fba9be0c2aa9c6c489b7e09c8400
treec63c05ed1c41f92bf84d643fc7da223d230bd540
parent42ec4ec863b784b6d03093929a0b6a82ad544d9d
Add concept checks to std::next and std::prev.

PR libstdc++/62039
* include/bits/stl_iterator_base_funcs.h (next, prev): Add concept
checks.
* testsuite/24_iterators/operations/prev_neg.cc: New.
* testsuite/24_iterators/operations/next_neg.cc: New.

From-SVN: r227447
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator_base_funcs.h
libstdc++-v3/testsuite/24_iterators/operations/next_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/24_iterators/operations/prev_neg.cc [new file with mode: 0644]