|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58901 - in trunk/libs/type_traits: doc test
From: john_at_[hidden]
Date: 2010-01-11 08:04:02
Author: johnmaddock
Date: 2010-01-11 08:04:01 EST (Mon, 11 Jan 2010)
New Revision: 58901
URL: http://svn.boost.org/trac/boost/changeset/58901
Log:
Fixes #3704.
Text files modified:
trunk/libs/type_traits/doc/decay.qbk | 4 ++--
trunk/libs/type_traits/test/decay_test.cpp | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
Modified: trunk/libs/type_traits/doc/decay.qbk
==============================================================================
--- trunk/libs/type_traits/doc/decay.qbk (original)
+++ trunk/libs/type_traits/doc/decay.qbk 2010-01-11 08:04:01 EST (Mon, 11 Jan 2010)
@@ -14,7 +14,7 @@
};
__type Let `U` be the result of `remove_reference<T>::type`, then if `U` is
-an array type, the result is `remove_extent<U>*`, otherwise if `U` is a
+an array type, the result is `remove_extent<U>::type*`, otherwise if `U` is a
function type then the result is `U*`, otherwise the result is `U`.
__std_ref 3.9.1.
@@ -25,7 +25,7 @@
[ [Expression] [Result Type]]
-[[`decay<int[2][3]>::type`][`int[2]*`]]
+[[`decay<int[2][3]>::type`][`int[3]*`]]
[[`decay<int(&)[2]>::type`] [`int*`]]
Modified: trunk/libs/type_traits/test/decay_test.cpp
==============================================================================
--- trunk/libs/type_traits/test/decay_test.cpp (original)
+++ trunk/libs/type_traits/test/decay_test.cpp 2010-01-11 08:04:01 EST (Mon, 11 Jan 2010)
@@ -63,6 +63,9 @@
::tt::decay<char[2]>::type,char*>::value),
true );
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same<
+ ::tt::decay<char[2][3]>::type,char(*)[3]>::value),
+ true );
+ BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same<
::tt::decay<const char[2]>::type,const char*>::value),
true );
BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same<
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk