From a5f067761ab0a45ffcd65960d5ea5ab32942a60f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 11 Jan 2010 13:04:01 +0000 Subject: [PATCH] Fixes #3704. [SVN r58901] --- doc/decay.qbk | 4 ++-- test/decay_test.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) mode change 100755 => 100644 test/decay_test.cpp diff --git a/doc/decay.qbk b/doc/decay.qbk index 5884a48..d15e933 100644 --- a/doc/decay.qbk +++ b/doc/decay.qbk @@ -14,7 +14,7 @@ }; __type Let `U` be the result of `remove_reference::type`, then if `U` is -an array type, the result is `remove_extent*`, otherwise if `U` is a +an array type, the result is `remove_extent::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 @@ __header ` #include ` or ` #include ::type`][`int[2]*`]] +[[`decay::type`][`int[3]*`]] [[`decay::type`] [`int*`]] diff --git a/test/decay_test.cpp b/test/decay_test.cpp old mode 100755 new mode 100644 index 594d5c2..80d5099 --- a/test/decay_test.cpp +++ b/test/decay_test.cpp @@ -62,6 +62,9 @@ TT_TEST_BEGIN(is_class) BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same< ::tt::decay::type,char*>::value), true ); + BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same< + ::tt::decay::type,char(*)[3]>::value), + true ); BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same< ::tt::decay::type,const char*>::value), true );