type_traits (extent): Minor tweak (i.e., public).
2004-12-13 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits (extent): Minor tweak (i.e., public). From-SVN: r92088
This commit is contained in:
parent
76ecaf0945
commit
273dfd213e
@ -1,3 +1,7 @@
|
||||
2004-12-13 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/tr1/type_traits (extent): Minor tweak (i.e., public).
|
||||
|
||||
2004-12-12 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/tr1/type_traits: Minor tweak.
|
||||
|
@ -246,18 +246,20 @@ namespace tr1
|
||||
|
||||
template<typename, unsigned = 0>
|
||||
struct extent
|
||||
: integral_constant<std::size_t, 0> { };
|
||||
: public integral_constant<std::size_t, 0> { };
|
||||
|
||||
template<typename _Tp, unsigned _Uint, std::size_t _Size>
|
||||
struct extent<_Tp[_Size], _Uint>
|
||||
: integral_constant<std::size_t,
|
||||
_Uint == 0 ? _Size : extent<_Tp, _Uint - 1>::value>
|
||||
: public integral_constant<std::size_t,
|
||||
_Uint == 0 ? _Size : extent<_Tp,
|
||||
_Uint - 1>::value>
|
||||
{ };
|
||||
|
||||
template<typename _Tp, unsigned _Uint>
|
||||
struct extent<_Tp[], _Uint>
|
||||
: integral_constant<std::size_t,
|
||||
_Uint == 0 ? 0 : extent<_Tp, _Uint - 1>::value>
|
||||
: public integral_constant<std::size_t,
|
||||
_Uint == 0 ? 0 : extent<_Tp,
|
||||
_Uint - 1>::value>
|
||||
{ };
|
||||
|
||||
/// @brief relationships between types [4.6].
|
||||
|
Loading…
Reference in New Issue
Block a user