Skip to content
Snippets Groups Projects
Commit fef7d709 authored by bkoz's avatar bkoz
Browse files

2003-07-24  Nathan Myers <ncm-nospam@cantrip.org>

        * testsuite/23_containers/map_operators.cc: Conform to
        container requirement as value must be Assignable.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69746 138bc75d-0d04-0410-961f-82ee72b054a4
parent 0b4b4686
No related branches found
No related tags found
No related merge requests found
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> 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
* acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
......
// 2000-09-07 bgarcia@laurelnetworks.com // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
// http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html // http://gcc.gnu.org/ml/libstdc++/2000-11/msg00093.html
void test02() void test02()
{ {
typedef std::map<int,const int> MapInt; typedef std::map<int, int> MapInt;
MapInt m; MapInt m;
for (unsigned i=0;i<10;++i) for (unsigned i = 0; i < 10; ++i)
m.insert(MapInt::value_type(i,i)); m.insert(MapInt::value_type(i,i));
for (MapInt::const_iterator i = m.begin(); i != m.end(); ++i) for (MapInt::const_iterator i = m.begin(); i != m.end(); ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment