aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-12-26 19:05:47 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-12-26 19:05:47 +0000
commitfe9ddfce2c6f2aaf7c2b64f5975751931080d83d (patch)
treee5867b5e63fcadf762426ebb33e429abb63ac360
parent1933b74f787e69b9bfe4ad0b74407b5af4ad9d7b (diff)
downloadgcc-fe9ddfce2c6f2aaf7c2b64f5975751931080d83d.zip
gcc-fe9ddfce2c6f2aaf7c2b64f5975751931080d83d.tar.gz
gcc-fe9ddfce2c6f2aaf7c2b64f5975751931080d83d.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/tr1/type_traits7
2 files changed, 8 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 0484e34..63e54f7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,10 @@
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,
and has_trivial_destructor.
* testsuite/tr1/4_metaprogramming/type_properties/
diff --git a/libstdc++-v3/include/tr1/type_traits b/libstdc++-v3/include/tr1/type_traits
index 0c53c9b..7b15b17 100644
--- a/libstdc++-v3/include/tr1/type_traits
+++ b/libstdc++-v3/include/tr1/type_traits
@@ -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>