]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rc_string_base.h (_M_compare<wchar_t>): Protect with _GLIBCXX_USE_WCHAR_T.
authorPaolo Carlini <pcarlini@suse.de>
Mon, 2 Oct 2006 16:09:19 +0000 (16:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 2 Oct 2006 16:09:19 +0000 (16:09 +0000)
2006-10-02  Paolo Carlini  <pcarlini@suse.de>

* include/ext/rc_string_base.h (_M_compare<wchar_t>):
Protect with _GLIBCXX_USE_WCHAR_T.
* include/ext/sso_string_base.h (_M_compare<wchar_t>):
Likewise.
(__sso_string_base<>::_M_destroy): Inline.

From-SVN: r117373

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/rc_string_base.h
libstdc++-v3/include/ext/sso_string_base.h

index d756a7ed2da9b0259244548108a859d442c14147..dac9c9f4db64b33485ffae717a19c7f9f234dc2b 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-02  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/ext/rc_string_base.h (_M_compare<wchar_t>):
+       Protect with _GLIBCXX_USE_WCHAR_T.
+       * include/ext/sso_string_base.h (_M_compare<wchar_t>):
+       Likewise.
+       (__sso_string_base<>::_M_destroy): Inline.
+
 2006-10-02  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/ext/pb_ds/detail/basic_types.hpp (comp_hash_): Remove,
index 3d41fe5dde19e2b6f7c89d9d8cb9c8ceec8b047a..081194bf4f42bbd17dd258f428a360d683a3a348 100644 (file)
@@ -699,6 +699,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       return false;
     }
 
+#ifdef _GLIBCXX_USE_WCHAR_T
   template<>
     inline bool
     __rc_string_base<wchar_t, std::char_traits<wchar_t>,
@@ -709,6 +710,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
        return true;
       return false;
     }
+#endif
 
 _GLIBCXX_END_NAMESPACE
 
index 7f7e2b544c65b8016dc41af9d3d2b24da08f7bcb..5a13d401270f68146eac0201079877ae3c210f9b 100644 (file)
@@ -92,7 +92,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       }
 
       void
-      _M_destroy(size_type) throw();
+      _M_destroy(size_type __size) throw()
+      { _M_get_allocator().deallocate(_M_data(), __size + 1); }
 
       // _M_construct_aux is used to implement the 21.3.1 para 15 which
       // requires special behaviour if _InIterator is an integral type
@@ -221,12 +222,6 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       { return false; }
     };
 
-  template<typename _CharT, typename _Traits, typename _Alloc>
-    void
-    __sso_string_base<_CharT, _Traits, _Alloc>::
-    _M_destroy(size_type __size) throw()
-    { _M_get_allocator().deallocate(_M_data(), __size + 1); }
-
   template<typename _CharT, typename _Traits, typename _Alloc>
     void
     __sso_string_base<_CharT, _Traits, _Alloc>::
@@ -554,6 +549,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
       return false;
     }
 
+#ifdef _GLIBCXX_USE_WCHAR_T
   template<>
     inline bool
     __sso_string_base<wchar_t, std::char_traits<wchar_t>,
@@ -564,6 +560,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
        return true;
       return false;
     }
+#endif
 
 _GLIBCXX_END_NAMESPACE