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: tegtmeye@… 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)

fusion_test.cc (1.7 KB ) - added by tegtmeye@… 13 years ago.
Example file

Download all attachments as: .zip

Change History (3)

by tegtmeye@…, 13 years ago

Attachment: fusion_test.cc added

Example file

comment:1 by tegtmeye@…, 13 years ago

Keywords: fusion find BOOST_FUSION_ADAPT_STRUCT added

comment:2 by tegtmeye@…, 12 years ago

Resolution: fixed
Status: newclosed

Seems to be fixed in 1.43

Note: See TracTickets for help on using tickets.