diff options
author | fdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-16 20:17:50 +0000 |
---|---|---|
committer | fdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-16 20:17:50 +0000 |
commit | 523212f81802a8ec302759dc91b76125a00bc3f3 (patch) | |
tree | b05eac7022c149f2a5ce0dd3baf50cee0b171b0f /libstdc++-v3 | |
parent | b1a2c5999897c21029cb2a36853989be619333b9 (diff) | |
download | gcc-523212f81802a8ec302759dc91b76125a00bc3f3.tar.gz |
2013-11-16 François Dumont <fdumont@gcc.gnu.org>
* testsuite/23_containers/unordered_set/55043.cc (equal): Add
missing & on rhs parameter.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc | 15 |
2 files changed, 16 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 923294cc03b..1af4e4c7c63 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2013-11-16 François Dumont <fdumont@gcc.gnu.org> + + * testsuite/23_containers/unordered_set/55043.cc (equal): Add + missing & on rhs parameter. + 2013-11-15 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/stl_bvector.h (vector<bool>::emplace_back()): LWG 2187: diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc index 3a0222625ca..2141263ca5d 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_set/55043.cc @@ -29,11 +29,18 @@ struct MoveOnly MoveOnly(MoveOnly&&) = default; }; -struct equal { - bool operator()(const MoveOnly&, const MoveOnly) const { return true; } +struct equal +{ + bool + operator()(const MoveOnly&, const MoveOnly&) const + { return true; } }; -struct hash { - std::size_t operator()(const MoveOnly&) const { return 0; } + +struct hash +{ + std::size_t + operator()(const MoveOnly&) const + { return 0; } }; template<typename Alloc> |