Boost C++ Libraries: Ticket #3704: Incorrect boost::decay documentation https://svn.boost.org/trac10/ticket/3704 <p> The first row of table <strong>1.10 Examples</strong> in <a href="http://www.boost.org/doc/libs/1_41_0/libs/type_traits/doc/html/boost_typetraits/reference/decay.html">boost::decay</a> doc states the result of <strong><code>decay&lt;int[2][3]&gt;::type</code></strong> is <strong><code>int[2]*</code></strong> (where lowest array bound removed), which is incorrect and is actually <strong><code>int[2]*</code></strong> (where topmost array bound removed). Unlike the former, the later behavior is consistent with <a href="http://www.boost.org/doc/libs/1_41_0/libs/type_traits/doc/html/boost_typetraits/reference/remove_extent.html">boost::remove_extent</a>. </p> <p> Also, the description of <strong>type</strong>, quote: <strong>"... the result is remove_extent&lt;U&gt;* ..."</strong>, would've been more accurate if it was <strong>"... the result is remove_extent&lt;U&gt;::type* ..."</strong> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3704 Trac 1.4.3 Kenneth Ho <ken@…> Wed, 02 Dec 2009 05:00:42 GMT attachment set https://svn.boost.org/trac10/ticket/3704 https://svn.boost.org/trac10/ticket/3704 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">decay.cpp</span> </li> </ul> <p> Source code of test program to demonstrate the incorrectness of decay doc. </p> Ticket Matias Capeletto Sat, 09 Jan 2010 21:42:11 GMT owner changed https://svn.boost.org/trac10/ticket/3704#comment:1 https://svn.boost.org/trac10/ticket/3704#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">John Maddock</span> </li> </ul> Ticket John Maddock Mon, 11 Jan 2010 13:04:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3704#comment:2 https://svn.boost.org/trac10/ticket/3704#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58901" title="Fixes #3704.">[58901]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3704" title="#3704: Bugs: Incorrect boost::decay documentation (closed: fixed)">#3704</a>. </p> Ticket John Maddock Mon, 11 Jan 2010 13:30:30 GMT <link>https://svn.boost.org/trac10/ticket/3704#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3704#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/58905" title="Fixes #3704.">[58905]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3704" title="#3704: Bugs: Incorrect boost::decay documentation (closed: fixed)">#3704</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>