type_traits (is_enum): Minor tweak.

2004-12-25  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (is_enum): Minor tweak.

From-SVN: r92605
This commit is contained in:
Paolo Carlini 2004-12-25 15:39:43 +00:00 committed by Paolo Carlini
parent a9e7ba8139
commit 310995eac7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-12-25 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (is_enum): Minor tweak.
2004-12-25 Paolo Carlini <pcarlini@suse.de> 2004-12-25 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits: Implement is_enum (usual caveats about * include/tr1/type_traits: Implement is_enum (usual caveats about

View File

@ -190,7 +190,7 @@ namespace tr1
template<typename _Tp> template<typename _Tp>
struct is_enum struct is_enum
: integral_constant<bool, __is_enum_helper<_Tp>::__value> { }; : public integral_constant<bool, __is_enum_helper<_Tp>::__value> { };
template<typename _Tp, bool = (is_reference<_Tp>::value template<typename _Tp, bool = (is_reference<_Tp>::value
|| is_void<_Tp>::value)> || is_void<_Tp>::value)>