diff options
author | Nathan Myers <ncm-nospam@cantrip.org> | 2003-07-24 16:40:09 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2003-07-24 16:40:09 +0000 |
commit | d7541133fe0d17a7e150d61717a64718fa0b9006 (patch) | |
tree | 955f685c17c0fffb783b2d79c49e533104a34b23 /libstdc++-v3 | |
parent | 0f31374d2c9f1fc4580f3420d87eddb55bc38b2d (diff) | |
download | gcc-d7541133fe0d17a7e150d61717a64718fa0b9006.tar.gz |
map_operators.cc: Conform to container requirement as value must be Assignable.
2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
* testsuite/23_containers/map_operators.cc: Conform to
container requirement as value must be Assignable.
From-SVN: r69746
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/map_operators.cc | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 76b225a1aa5..4eaf1da7028 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-07-24 Nathan Myers <ncm-nospam@cantrip.org> + + * testsuite/23_containers/map_operators.cc: Conform to + container requirement as value must be Assignable. + 2003-07-23 Alexandre Oliva <aoliva@redhat.com> * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it diff --git a/libstdc++-v3/testsuite/23_containers/map_operators.cc b/libstdc++-v3/testsuite/23_containers/map_operators.cc index 47604deb4a8..03a7860c8ba 100644 --- a/libstdc++-v3/testsuite/23_containers/map_operators.cc +++ b/libstdc++-v3/testsuite/23_containers/map_operators.cc @@ -1,6 +1,6 @@ // 2000-09-07 bgarcia@laurelnetworks.com -// Copyright (C) 2000, 2001 Free Software Foundation, Inc. +// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,11 +28,11 @@ // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html void test02() { - typedef std::map<int,const int> MapInt; + typedef std::map<int, int> MapInt; MapInt m; - for (unsigned i=0;i<10;++i) + for (unsigned i = 0; i < 10; ++i) m.insert(MapInt::value_type(i,i)); for (MapInt::const_iterator i = m.begin(); i != m.end(); ++i) |