Subject: [Boost-bugs] [Boost C++ Libraries] #3322: Incorrect/Inconsistent behavior of fusion::find with vector and adapted struct.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-06 21:08:19
#3322: Incorrect/Inconsistent behavior of fusion::find with vector and adapted
struct.
--------------------------------+-------------------------------------------
Reporter: tegtmeye@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: fusion
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
--------------------------------+-------------------------------------------
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
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3322> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC