Boost C++ Libraries: Ticket #3823: boost introspection incomplete for user-types https://svn.boost.org/trac10/ticket/3823 <p> Given the following structure: </p> <p> struct B {}; typedef B type_; struct A { </p> <blockquote> <p> type_ name; </p> </blockquote> <p> }; </p> <p> BOOST_HAS_MEMBER_DATA(type_, name) </p> <p> 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 &lt;type_ A::*&gt; struct type{}; type&lt;&amp;A::name&gt;*; 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3823 Trac 1.4.3 Vladimir Prus Fri, 08 Jan 2010 20:20:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3823#comment:1 https://svn.boost.org/trac10/ticket/3823#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">duplicate</span> </li> </ul> <p> Dup of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3824" title="#3824: Bugs: boost introspection incomplete for user-types (closed: invalid)">#3824</a> </p> Ticket