Boost logo

Boost :

From: Gennadiy E. Rozental (rogeeff_at_[hidden])
Date: 2001-09-18 18:57:19


Just info:

I know that, for example, HPUX aCC will require & ahead of function
name always when you need pointer to function variable, while MSVC
does not.

Gennadiy.

--- In boost_at_y..., Darin Adler <darin_at_b...> wrote:
> This program fails to compile with Metrowerks CodeWarrior 7.0 and
the latest
> boost from cvs:
>
> #include <boost/function.hpp>
>
> namespace { void empty_function() { } }
>
> int main()
> {
> boost::function<void> f(empty_function);
> }
>
> It seems that I need to say &empty_function, not just
empty_function. Is
> this an intentional features of Boost.Function? A bug in
Boost.Function? A
> bug in the Metrowerks compiler or standard library?
>
> -- Darin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk