5.12.4 Explicit Conversions

2013-10-07 15:25:35 · 作者: · 浏览: 69

An explicit conversion is spoken of as a cast and is supported by the following set of named cast operators: static_cast, dynamic_cast, const_cast, and reinterpret_cast.

显式转换,又叫强制类型转换,有的书直接称之为“强制”(cast)。

Although necessary at times, casts are inherently dangerous constructs.