+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,
}
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
{ 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>::
return false;
}
+#ifdef _GLIBCXX_USE_WCHAR_T
template<>
inline bool
__sso_string_base<wchar_t, std::char_traits<wchar_t>,
return true;
return false;
}
+#endif
_GLIBCXX_END_NAMESPACE