mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-25 05:40:26 +08:00
type_traits (__is_enum_helper): Slightly simplify, make __convert non template.
2004-12-26 Paolo Carlini <pcarlini@suse.de> * include/tr1/type_traits (__is_enum_helper): Slightly simplify, make __convert non template. From-SVN: r92622
This commit is contained in:
parent
1933b74f78
commit
fe9ddfce2c
@ -1,3 +1,8 @@
|
||||
2004-12-26 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/tr1/type_traits (__is_enum_helper): Slightly simplify,
|
||||
make __convert non template.
|
||||
|
||||
2004-12-26 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/tr1/type_traits: Implement is_pod, has_trivial_constructor,
|
||||
|
@ -176,12 +176,11 @@ namespace tr1
|
||||
static __one __test(unsigned long long);
|
||||
static __two __test(...);
|
||||
|
||||
template<typename _Up>
|
||||
struct __convert
|
||||
{ operator _Up() const; };
|
||||
struct __convert
|
||||
{ operator _Tp() const; };
|
||||
|
||||
public:
|
||||
static const bool __value = sizeof(__test(__convert<_Tp>())) == 1;
|
||||
static const bool __value = sizeof(__test(__convert())) == 1;
|
||||
};
|
||||
|
||||
template<typename _Tp>
|
||||
|
Loading…
x
Reference in New Issue
Block a user