Fix breakage due to removing __gnu_cxx::size_t declaration
authorJonathan Wakely <jwakely@redhat.com>
Fri, 31 May 2019 13:59:19 +0000 (14:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 31 May 2019 13:59:19 +0000 (14:59 +0100)
Restore the using-declaration but locally in the source file, not in the
header.

* src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.

From-SVN: r271812

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++98/bitmap_allocator.cc

index ac97f0e8d764c243828d8c720dcf6f4ba6e7292f..7dc8e5813183be9f8ca5b0e24683373cda63349c 100644 (file)
@@ -1,5 +1,7 @@
 2019-05-31  Jonathan Wakely  <jwakely@redhat.com>
 
+       * src/c++98/bitmap_allocator.cc: Add using-declaration for size_t.
+
        PR libstdc++/90682
        * libsupc++/eh_term_handler.cc: Include eh_term_handler.h to get
        definition of _GLIBCXX_DEFAULT_TERM_HANDLER.
index d22bf4e118f62a77c40dc442fa6ccb825100f61b..ffaea1cbac9170ad853e3893080ed2c62f754b20 100644 (file)
@@ -28,6 +28,8 @@ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
 {
 _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
+  using std::size_t;
+
   namespace __detail
   {
     template class __mini_vector<