Boost C++ Libraries: Ticket #5885: Document mistake: is_union https://svn.boost.org/trac10/ticket/5885 <p> <a href="http://www.boost.org/doc/libs/1_47_0/libs/type_traits/doc/html/boost_typetraits/reference/is_union.html">http://www.boost.org/doc/libs/1_47_0/libs/type_traits/doc/html/boost_typetraits/reference/is_union.html</a> The part of examples are wrong. </p> <pre class="wiki"> is_union&lt;void&gt; inherits from true_type. is_union&lt;const void&gt;::type is the type true_type. is_union&lt;void&gt;::value is an integral constant expression that evaluates to true. </pre><p> I think the all of examples should be </p> <pre class="wiki">Examples: Given: union my_union { }; is_union&lt;my_union&gt; inherits from true_type. is_union&lt;const my_union&gt;::type is the type true_type. is_union&lt;my_union&gt;::value is an integral constant expression that evaluates to true. is_union&lt;my_union*&gt;::value is an integral constant expression that evaluates to false. is_union&lt;T&gt;::value_type is the type bool. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5885 Trac 1.4.3 John Maddock Sat, 10 Sep 2011 16:58:03 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5885#comment:1 https://svn.boost.org/trac10/ticket/5885#comment:1 <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/74336" title="Fix errors in is_union examples. Fixes #5885.">[74336]</a>) Fix errors in is_union examples. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5885" title="#5885: Bugs: Document mistake: is_union (closed: fixed)">#5885</a>. </p> Ticket