array_allocator.h (array_allocator<>::allocate): Avoid __used.
authorLoren J. Rittle <ljrittle@acm.org>
Wed, 19 Jan 2005 21:59:55 +0000 (21:59 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Wed, 19 Jan 2005 21:59:55 +0000 (21:59 +0000)
* include/ext/array_allocator.h (array_allocator<>::allocate):
Avoid __used.  Use __array_used instead.

From-SVN: r93923

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/array_allocator.h

index 33a9f47c1d744dfe70f3ee93259e3b2d65e6116c..3c29b43fa306c5b0b279cb5306c65f006e5ec7f1 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-19  Loren J. Rittle  <ljrittle@acm.org>
+
+       * include/ext/array_allocator.h (array_allocator<>::allocate):
+       Avoid __used.  Use __array_used instead.
+
 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
 
        * config/os/aix/os_defines.h (_XOPEN_SOURCE): Delete.
index 54525f034136d5b5691b4408f31afe050c23cafd..8689d9da26a6cafc5b840ac0888a2a15b2e4f530 100644 (file)
@@ -1,6 +1,6 @@
 // array allocator -*- C++ -*-
 
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005 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
@@ -120,11 +120,11 @@ namespace __gnu_cxx
       pointer
       allocate(size_type __n, const void* = 0)
       {
-       static size_type __used;
-       if (_M_array == 0 || __used + __n > _M_array->size())
+       static size_type __array_used;
+       if (_M_array == 0 || __array_used + __n > _M_array->size())
          std::__throw_bad_alloc();
-       pointer __ret = _M_array->begin() + __used;
-       __used += __n;
+       pointer __ret = _M_array->begin() + __array_used;
+       __array_used += __n;
        return __ret;
       }
     };