Nested std::bind functions give bad error (with no reference to the file being compiled) - by Rubenvb89

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 616827 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 10/26/2010 10:51:06 AM
Access Restriction Public


There seems to be a problem with the MSVC 2010 c++ <functional> implementation with regard to std::bind. See example below. The functionally equivalent using lambda functions compiles and runs as expected. Both versions of the code work in GCC 4.5+ (with -std=c++0x -pedantic -Wall -Wextra, which is why I strongly believe this is a bug in MSVC.

Forum link:
Sign in to post a comment.
Posted by Microsoft on 6/28/2011 at 5:51 PM

Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11.

If you have any further questions, feel free to E-mail me at .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Microsoft on 10/26/2010 at 7:15 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Posted by Microsoft on 10/26/2010 at 11:22 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(