
10 Jul
2006
10 Jul
'06
7:48 p.m.
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