summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-17 16:39:10 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-17 16:39:10 +0000
commit019876170e81b13ab2c36dd932956a76e622a65e (patch)
treea5853d64ea7aa4fe25f52f0d076bcdaf06611381
parent638e4b601d7a084f2a2b51c2aa8f50341e8dc0f7 (diff)
downloadgcc-019876170e81b13ab2c36dd932956a76e622a65e.tar.gz
2007-08-17 Chris Fairles <chris.fairles@gmail.com>
PR libstdc++/33098 * include/std/type_traits (__is_convertible_helper): Use add_lvalue_reference. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127588 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/include/std/type_traits3
2 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 2c473b05c63..3a689d2c9da 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-17 Chris Fairles <chris.fairles@gmail.com>
+
+ PR libstdc++/33098
+ * include/std/type_traits (__is_convertible_helper):
+ Use add_lvalue_reference.
+
2007-08-17 Johannes Willkomm <willkomm@sc.rwth-aachen.de>
PR libstdc++/33084
diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits
index df5bbbb0b20..4af108315f5 100644
--- a/libstdc++-v3/include/std/type_traits
+++ b/libstdc++-v3/include/std/type_traits
@@ -240,7 +240,8 @@ namespace std
{
// "An imaginary lvalue of type From...".
static const bool __value = (__is_convertible_simple<typename
- add_reference<_From>::type, _To>::__value);
+ add_lvalue_reference<_From>::type,
+ _To>::__value);
};
template<typename _From, typename _To>