|
Boost Users : |
From: Server Levent Yilmaz (leventyilmaz_at_[hidden])
Date: 2007-02-01 11:13:15
On 2/1/07, Server Levent Yilmaz <leventyilmaz_at_[hidden]> wrote:
>
>
>
> Note that this expression will not call anything, it will generate a
> functor and drop it. I guess what you are trying to do is this
>
> bind( func<void()>, print) (); // note the function call operator at the
> end.
A more conforming statement would be this:
bind( func<void(*)()>, print) ();
although first one does work with some compilers (MSVC to be specific,
grrr).
- levent
-- Server Levent Yilmaz Mechanical Engineering @ PITT
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net