Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3675: Boost.Parameter passing function pointers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-08 14:02:56
#3675: Boost.Parameter passing function pointers
------------------------------------------------------------+---------------
Reporter: Aristid Breitkreuz <aristid.breitkreuz@â¦> | Owner: danielw
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: parameter
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
------------------------------------------------------------+---------------
Comment(by ash.berlin@â¦):
The seems to be a bug of sorts in Apple's G++ 4.0.1. G++ 4.2.1 (which
comes with xcode 3.1.3 and up) works.
Also it works if you change:
{{{
std::cout << (testfn(f) == f) << std::endl;
}}}
to use `&f` instead of `f`:
{{{
std::cout << (testfn(&f) == f) << std::endl;
}}}
It compiles and prints `1` as expected.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3675#comment:2> 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:02 UTC