Opened 13 years ago
Closed 13 years ago
#3823 closed Bugs (duplicate)
boost introspection incomplete for user-types
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
Dup of #3824