Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2006-07-10 15:48:20


On Jul 10, 2006, at 2:25 PM, Allen Bierbaum wrote:

> The following code snippet:
>
> #include <boost/function.hpp>
>
> class TestClass
> {
> public:
> void doSomethingDefault(boost::function2<void, bool, bool>
>
> cb=boost::function2<void,bool,bool>())
> {;}
> };
>
> int main()
> {
> TestClass test;
> test.doSomethingDefault();
> return 1;
> }
>
> Gives an internal compiler error on vc 7.1:
> [snip]

> Is there something incorrect with my usage? If not, is this an known
> issue? I searched through the bug tracker and the mailing lists but
> did
> not see anything about this bug.

Your code looks fine... I've never seen this bug before.

> Does anyone have any ideas on how to work around this bug?

Can you just use "= 0" for the default value?

        Doug


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