diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-23 14:54:26 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-04-23 14:54:26 +0000 |
commit | a57562d321037b6acfa4090e6bf06dbf4ab13316 (patch) | |
tree | 8ed98f8e83191876bab2e7b834249f3864fad28d /libstdc++-v3/include/ext/bitmap_allocator.h | |
parent | 667538a434b883f49975411016d5a4fb2d9ea284 (diff) | |
download | ppe42-gcc-a57562d321037b6acfa4090e6bf06dbf4ab13316.tar.gz ppe42-gcc-a57562d321037b6acfa4090e6bf06dbf4ab13316.zip |
2006-04-23 Marc Glisse <marc.glisse@normalesup.org>
PR libstdc++/27199
* ext/pool_allocator.h: Add using declarations for size_t, ptrdiff_t.
* ext/bitmap_allocator.h: Likewise; qualify with std::.
* ext/new_allocator.h: Likewise.
* ext/malloc_allocator.h: Likewise.
* ext/array_allocator.h: Likewise.
* ext/mt_allocator.h: Likewise.
* ext/functional: Likewise for size_t.
* ext/debug_allocator.h: Likewise.
* bits/char_traits.h: Qualify with std:: size_t.
* debug/hash_multimap.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext/bitmap_allocator.h')
-rw-r--r-- | libstdc++-v3/include/ext/bitmap_allocator.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libstdc++-v3/include/ext/bitmap_allocator.h b/libstdc++-v3/include/ext/bitmap_allocator.h index 6d80c99e509..42109b46891 100644 --- a/libstdc++-v3/include/ext/bitmap_allocator.h +++ b/libstdc++-v3/include/ext/bitmap_allocator.h @@ -71,6 +71,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) + using std::size_t; + using std::ptrdiff_t; + #if defined __GTHREADS namespace { @@ -238,8 +241,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) typedef _Tp* pointer; typedef _Tp& reference; typedef const _Tp& const_reference; - typedef std::size_t size_type; - typedef std::ptrdiff_t difference_type; + typedef size_t size_type; + typedef ptrdiff_t difference_type; typedef pointer iterator; private: @@ -396,7 +399,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) struct __mv_iter_traits<_Tp*> { typedef _Tp value_type; - typedef std::ptrdiff_t difference_type; + typedef ptrdiff_t difference_type; }; enum @@ -865,8 +868,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) class bitmap_allocator : private free_list { public: - typedef std::size_t size_type; - typedef std::ptrdiff_t difference_type; + typedef size_t size_type; + typedef ptrdiff_t difference_type; typedef _Tp* pointer; typedef const _Tp* const_pointer; typedef _Tp& reference; |