VISUAL C ++标准的符合性 [英] Visual C++ standards compliance

查看:138
本文介绍了VISUAL C ++标准的符合性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否以及在何种程度,是否微软的Visual C ++编译器符合当前C(C90 / C99)和C ++(ISO / IEC 14882:2003)标准。不幸的是,我只能够找到关于这个问题的部分信息,我可能会看错误的地方。

I was wondering if, and to what degree, does Microsoft's Visual C++ compiler conform to the current C (C90/C99) and C++ (ISO/IEC 14882:2003) standards. Unfortunately I'm only able to find partial information on the subject, I may be looking at all the wrong places.

相关资源任何指针是多少AP preciated。先谢谢了。

Any pointers to related resources are much appreciated. Thanks in advance.

编辑:
既然是看起来这是一个最敏感的问题,我会满足于一个是/ MSVC上是否完全符合C90没有答案......我来理解,这不是对C99的情况下(自然) ,我仍然没有关于C ++。

Since is looks like this is a most touchy subject, I'd be content with a yes/no answer on whether MSVC wholly conforms to C90...I've come to the understanding that this is not the case for C99 (naturally), and I still have no clue about C++..

EDIT2:
感谢大家对他们的答案。我已经接受Rushakov先生的回答,但upvoted所有相关的答案,这都是有帮助的。

Thanks to everyone for their answers. I've accepted Mr. Rushakov's answer but upvoted all relevant answers, which were all helpful.

推荐答案

MSDN的为Visual C ++非标准行为页面会启发你?请确保你看的版本你最感兴趣的(在右边框)。

Perhaps MSDN's Nonstandard Behavior page for Visual C++ will enlighten you? Make sure you look at the version you're most interested in (the box on the right-hand side).

由于MSDN的链接更改所有的时间(谁知道为什么),这里是从VS2008页面中的主要内容,因此,当链路中断,有人遇到这样的回答,他们可以谷歌和找到正确的页面:

Since MSDN's links change all the time (and who knows why), here's the main content from the page on VS2008, so when the link breaks and someone comes across this answer, they can Google and find the correct page:

以下主题是一些
  众所周知的地方在Visual C ++
  实现C ++的不同意
  与C ++标准。本节
  编号是指章节号
  C ++标准。

Nonstandard Behavior

The following topics are some of the known places where the Visual C++ implementation of C++ does not agree with the C++ standard. The section numbers refer to section numbers in the C++ standard.

  • Compiler Limits
  • 10.3 (Paragraph 5) Covariant Return Types
  • 14 export Keyword on a Template
  • 14.6.2 Dependent Names
  • 15.4 Function Exception Specifiers
  • 16.3.2 The # Operator
  • 21.1.1 Character Traits Requirements
  • Storage Location of Objects

这篇关于VISUAL C ++标准的符合性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆