[Boost-bugs] [Boost C++ Libraries] #3823: boost introspection incomplete for user-types

Subject: [Boost-bugs] [Boost C++ Libraries] #3823: boost introspection incomplete for user-types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-06 07:58:56


#3823: boost introspection incomplete for user-types
-------------------------------------+--------------------------------------
 Reporter: farago1@… | Owner: nasonov
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: any
  Version: Boost Development Trunk | Severity: Problem
 Keywords: introspection |
-------------------------------------+--------------------------------------
 Given the following structure:

 struct B {};
 typedef B type_;
 struct A {
   type_ name;
 };

 BOOST_HAS_MEMBER_DATA(type_, name)


 If type_ is B result is always false. B* works, as well as integral types.
 I don't know why it doesn't work because if you try to instantiate a
 template of given type (eg template <type_ A::*> struct type{};
 type<&A::name>*; there is no compile-error).
 Note: I do not use the typedef shortcut, it is just for exemplary
 purposes, but substituting the type itself doesn't work either.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3823>
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:02 UTC