Commit fe9ddfce by Paolo Carlini Committed by Paolo Carlini

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
parent 1933b74f
2004-12-26 Paolo Carlini <pcarlini@suse.de> 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, * include/tr1/type_traits: Implement is_pod, has_trivial_constructor,
and has_trivial_destructor. and has_trivial_destructor.
* testsuite/tr1/4_metaprogramming/type_properties/ * testsuite/tr1/4_metaprogramming/type_properties/
......
...@@ -176,12 +176,11 @@ namespace tr1 ...@@ -176,12 +176,11 @@ namespace tr1
static __one __test(unsigned long long); static __one __test(unsigned long long);
static __two __test(...); static __two __test(...);
template<typename _Up> struct __convert
struct __convert { operator _Tp() const; };
{ operator _Up() const; };
public: public:
static const bool __value = sizeof(__test(__convert<_Tp>())) == 1; static const bool __value = sizeof(__test(__convert())) == 1;
}; };
template<typename _Tp> template<typename _Tp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment