From: paolo Date: Thu, 29 Dec 2011 22:04:16 +0000 (+0000) Subject: 2011-12-29 Paolo Carlini X-Git-Tag: upstream/4.9.2~15241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd7631e474accd9b790554ab18e324204c4e93c9;p=platform%2Fupstream%2Flinaro-gcc.git 2011-12-29 Paolo Carlini * include/bits/hashtable_policy.h (struct _Ebo_helper<>): Don't use _N, badname on Solaris; minor stylistic changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182734 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e697e4b..7a35a3a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-12-29 Paolo Carlini + + * include/bits/hashtable_policy.h (struct _Ebo_helper<>): Don't use + _N, badname on Solaris; minor stylistic changes. + 2011-12-29 François Dumont PR libstdc++/51608 diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h index 12a9ad9..261e56b 100644 --- a/libstdc++-v3/include/bits/hashtable_policy.h +++ b/libstdc++-v3/include/bits/hashtable_policy.h @@ -515,45 +515,45 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Helper class using EBO when it is not forbidden, type is not final, // and when it worth it, type is empty. - template struct _Ebo_helper; - // Specialization using EBO - template - struct _Ebo_helper<_N, _Tp, true> : _Tp + // Specialization using EBO. + template + struct _Ebo_helper<_Nm, _Tp, true> : _Tp { _Ebo_helper() = default; _Ebo_helper(const _Tp& __tp) : _Tp(__tp) { } static const _Tp& - _S_cget(const _Ebo_helper<_N, _Tp, true>& __eboh) + _S_cget(const _Ebo_helper& __eboh) { return static_cast(__eboh); } static _Tp& - _S_get(_Ebo_helper<_N, _Tp, true>& __eboh) + _S_get(_Ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } }; - // Specialization not using EBO - template - struct _Ebo_helper<_N, _Tp, false> + // Specialization not using EBO. + template + struct _Ebo_helper<_Nm, _Tp, false> { _Ebo_helper() = default; - _Ebo_helper(const _Tp& __tp) : m_tp(__tp) + _Ebo_helper(const _Tp& __tp) : __m_tp(__tp) { } static const _Tp& - _S_cget(const _Ebo_helper<_N, _Tp, false>& __eboh) - { return __eboh.m_tp; } + _S_cget(const _Ebo_helper& __eboh) + { return __eboh.__m_tp; } static _Tp& - _S_get(_Ebo_helper<_N, _Tp, false>& __eboh) - { return __eboh.m_tp; } + _S_get(_Ebo_helper& __eboh) + { return __eboh.__m_tp; } private: - _Tp m_tp; + _Tp __m_tp; }; // Class template _Hash_code_base. Encapsulates two policy issues that @@ -583,7 +583,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, _Hash, false> - : _Ebo_helper<0, _ExtractKey>, _Ebo_helper<1, _Hash> + : _Ebo_helper<0, _ExtractKey>, _Ebo_helper<1, _Hash> { private: typedef _Ebo_helper<0, _ExtractKey> _EboExtractKey; @@ -655,7 +655,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typename _H1, typename _H2> struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, _Default_ranged_hash, false> - : _Ebo_helper<0, _ExtractKey>, _Ebo_helper<1, _H1>, _Ebo_helper<2, _H2> + : _Ebo_helper<0, _ExtractKey>, _Ebo_helper<1, _H1>, _Ebo_helper<2, _H2> { private: typedef _Ebo_helper<0, _ExtractKey> _EboExtractKey; @@ -732,7 +732,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typename _H1, typename _H2> struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, _Default_ranged_hash, true> - : _Ebo_helper<0, _ExtractKey>, _Ebo_helper<1, _H1>, _Ebo_helper<2, _H2> + : _Ebo_helper<0, _ExtractKey>, _Ebo_helper<1, _H1>, _Ebo_helper<2, _H2> { private: typedef _Ebo_helper<0, _ExtractKey> _EboExtractKey; @@ -835,9 +835,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typename _H1, typename _H2, typename _Hash, bool __cache_hash_code> struct _Hashtable_base - : _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, _Hash, - __cache_hash_code>, - _Ebo_helper<0, _Equal> + : _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, _Hash, + __cache_hash_code>, + _Ebo_helper<0, _Equal> { private: typedef _Ebo_helper<0, _Equal> _EboEqual;