Boost logo

Boost :

From: Wilka (wilka_at_[hidden])
Date: 2001-10-06 14:59:42


With MSVC 6, the current version of boost::bind gives errors with

<code>
void foo();

int main()
{
        boost::function<void> f = boost::bind(foo);

        f();

        return 0;
}
</code>

However, boost::function works OK. That is

<code>
void foo();

int main()
{
        boost::function<void> f(&foo);

        f();

        return 0;
}
</code>

Compiles with no errors. Is this just an omission from boost::bind, or
are new libraries not going to include these 'fixes' for broken
compilers?

- Wilka


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