Subject: [Boost-bugs] [Boost C++ Libraries] #5666: is_class documented as yielding "true" for unions, but documentation contradicts that
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-30 21:19:20
#5666: is_class documented as yielding "true" for unions, but documentation
contradicts that
--------------------------------------------+-------------------------------
Reporter: schaub.johannes@⦠| Owner: matias
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Documentation
Version: Boost 1.46.1 | Severity: Problem
Keywords: |
--------------------------------------------+-------------------------------
The is_class documentation at
http://www.boost.org/doc/libs/1_46_1/libs/type_traits/doc/html/boost_typetraits/reference/is_class.html
says
"Inherits: If T is a (possibly cv-qualified) class type then inherits
from true_type, otherwise inherits from false_type"
This means that is_class shall be derived from true_type if T is an union,
because an union is a class type. But the "Compiler Compatibility" section
contains some really confusing text:
"Without (some as yet unspecified) help from the compiler, we cannot
distinguish between union and class types, as a result this type will
erroneously inherit from true_type for union types."
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5666> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC