I found a bug in the VC11 IntelliSense when mixing tasks and IAsyncOperations<T>^. Here is the code snippet that produce an IntelliSense error (but compile / run successfully):IAsyncOperation<FileReadWriteProxy^>^ FileReadWriteProxy::FromFile(IStorageFile^ file, uint64 contentSize, uint64 alreadyWrittenLength, uint32 readBufferSize, Platform::String^ identity){ task<FileReadWriteProxy^> task = create_task(file->OpenAsync(FileAccessMode::ReadWrite)) .then([=](IRandomAccessStream^ fileStream) { return ref new FileReadWriteProxy(file, fileStream, contentSize, alreadyWrittenLength, readBufferSize, identity); }); IAsyncOperation<FileReadWriteProxy^>^ asyncOp = create_async([=]{return task;}); return asyncOp;}The error refers to the line "IAsyncOperation<FileReadWriteProxy^>^ asyncOp = create_async([=]{return task;});".
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...