本文介绍了Do C89或C ++ 03是否定义严格别名规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过 C89和C ++ 03定义了严格的别名规则。但是,我不能在标准中找到特定的位。我的理解是在C99中添加了严格的别名规则。

I've seen several assertions that C89 and C++03 define strict aliasing rules. I, however, cannot find that particular bit in the standard. My understanding was that strict aliasing rules were added in C99.

推荐答案

C ++ 03标准在§3.10[basic.lval] p15

The C++03 standard has the following under §3.10 [basic.lval] p15:

脚注:

还列出了其他标准中的部分。

This site also lists the sections in the other standards.

这篇关于Do C89或C ++ 03是否定义严格别名规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 07:21