move.h (move, forward): Mark constexpr.
authorBenjamin Kosnik <bkoz@redhat.com>
Sat, 23 Jul 2011 03:17:11 +0000 (03:17 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 23 Jul 2011 03:17:11 +0000 (03:17 +0000)
commit9b9e81a0a9cef8e9053339f92f9f1be3a13890ea
tree91438aa522099078f99fff44746880494507cf5a
parent15c2ccbac51d3e17c4524946bbf1ee44c6e7f811
move.h (move, forward): Mark constexpr.

2011-07-22  Benjamin Kosnik  <bkoz@redhat.com>
    Daniel Krugler  <daniel.kruegler@googlemail.com>

* include/bits/move.h (move, forward): Mark constexpr.
* include/bits/stl_pair.h (pair): Mark move ctors constexpr.
* testsuite/20_util/pair/make_pair/constexpr.cc: New.
* testsuite/20_util/pair/cons/constexpr.cc: Add tests.

Co-Authored-By: Daniel Krugler <daniel.kruegler@googlemail.com>
From-SVN: r176672
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/move.h
libstdc++-v3/include/bits/stl_pair.h
libstdc++-v3/testsuite/20_util/pair/cons/constexpr.cc
libstdc++-v3/testsuite/20_util/pair/make_pair/constexpr.cc [new file with mode: 0644]