<system_error>: error C2382 when compiling with '/Za' (Disable Language Extensions) - by zchothia

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 745614 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/1/2012 2:37:28 AM
Access Restriction Public


A program which is compiled with the '/Za' flag and includes the <system_error> header fails to compile with VS2012.

This issue seems to be caused by a mismatch between the prototype and declaration of the functions 'generic_category', 'iostream_category' and 'system_category' with respect to the _NOEXCEPT specifier.
Sign in to post a comment.
Posted by Stephan [MSFT] on 6/4/2012 at 4:42 PM

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

Please note that /Za is buggy and breaks conformant code, such as vector<unique_ptr<T>>. As a result, we recommend against using /Za, and we stopped testing the STL with it during VC10's development.

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

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by Helen [MSFT] on 6/3/2012 at 8:54 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 MS-Moderator01 on 6/1/2012 at 2:43 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)