OSDN Git Service

2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jul 2003 16:40:09 +0000 (16:40 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jul 2003 16:40:09 +0000 (16:40 +0000)
        * 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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/map_operators.cc

index 76b225a..4eaf1da 100644 (file)
@@ -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
index 47604de..03a7860 100644 (file)
@@ -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
 // 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)