Opened 13 years ago

Closed 13 years ago

#3823 closed Bugs (duplicate)

boost introspection incomplete for user-types

Reported by: farago1@… Owned by: nasonov
Milestone: Boost 1.42.0 Component: any
Version: Boost Development Trunk Severity: Problem
Keywords: introspection Cc:

Description

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.

Change History (1)

comment:1 by Vladimir Prus, 13 years ago

Resolution: duplicate
Status: newclosed

Dup of #3824

Note: See TracTickets for help on using tickets.