Opened 13 years ago
Closed 12 years ago
#3322 closed Bugs (fixed)
Incorrect/Inconsistent behavior of fusion::find with vector and adapted struct.
| Reported by: | Owned by: | Joel de Guzman | |
|---|---|---|---|
| Milestone: | Boost 1.40.0 | Component: | fusion |
| Version: | Boost 1.39.0 | Severity: | Problem |
| Keywords: | fusion find BOOST_FUSION_ADAPT_STRUCT | Cc: |
Description
For adapted struct:
struct foo {
int bar;
};
... adapted struct code...
Attempting to find 'int' in a const instance of foo fails unless the query is against a const int. Works correctly for fusion::vector et al.
const foo f;
fusion::find<int>(f); error fusion::find<const int>(f); OK
See attached code
Attachments (1)
Change History (3)
by , 13 years ago
| Attachment: | fusion_test.cc added |
|---|
comment:1 by , 13 years ago
| Keywords: | fusion find BOOST_FUSION_ADAPT_STRUCT added |
|---|
Boost users thread: http://article.gmane.org/gmane.comp.lib.boost.user/50124
Note:
See TracTickets
for help on using tickets.

Example file