Subject: [Boost-bugs] [Boost C++ Libraries] #6172: let ::boost:: adaptors:: transformed accept raw function pointers too
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-24 09:59:19
#6172: let ::boost:: adaptors:: transformed accept raw function pointers too
-----------------------------------+----------------------------------------
Reporter: giecrilj@⦠| Owner: neilgroves
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: range
Version: Boost 1.44.0 | Severity: Problem
Keywords: |
-----------------------------------+----------------------------------------
{{{
#!cpp
#include <cstdlib>
#include <vector>
#include <boost/range/algorithm/find.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <boost/mem_fn.hpp>
class X { public: int foo () const; };
#define MEM_FN
#ifndef MEM_FN
#define MEM_FN ::boost:: mem_fn
#endif
int main ()
{
::boost:: find
(::std:: vector < X > ()
| ::boost:: adaptors:: transformed (MEM_FN (&X:: foo)), 0);
return +EXIT_SUCCESS; }
}}}
/usr/include/boost/iterator/transform_iterator.hpp:42:47: error: âint
(X::*)()constâ is not a class, struct, or union type
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6172> 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:07 UTC