From: Leigh Johnston on


"David Lowndes" <DavidL(a)example.invalid> wrote in message
news:sb9ap5he6g7s88j7ifkj0kgaegivaqpftn(a)4ax.com...
>>The following doesn't compile in VS2008:
>>
>>#include <functional>
>>
>>struct foo
>>{
>> void operator()() { }
>>};
>>
>>int main()
>>{
>> foo o;
>> std::tr1::bind(o)();
>>}
>>
>>Has this been fixed in VS2010?
>
> It's the same with the VC2010 RC compiler.
>
> Dave

Raised as
https://connect.microsoft.com/VisualStudio/feedback/details/540098/problem-with-non-const-operator-and-bind#

Please vote.

/Leigh