Overview | Namespace | Class | 索引 | Help |
全世界の 機能(する)/行事s in Namespace sal
in Sourcefile types.h
- static_int_cast
template< typename T1, typename T2 >
T1 static_int_cast(T2 n );
事実上の abstract const volatile template static inline C-結合,連鎖 NO NO NO NO YES NO YES NO
- 要約
A static_cast between integral types, to 避ける C++ compiler 警告s.
- Description
In C++ source code, use sal::static_int_cast<T>(n) instead of static_cast<T>(n) whenever a compiler 警告 about integral type problems shall be silenced. That way, source code that needs to be 修正するd when the type of any of the 表現s 伴う/関わるd in the compiler 警告 is changed can be 設立する more easily. Both template arguments T1 and T2 must be integral types.
最高の,を越す of Page
Copyright © 2012, The Apache ソフトウェア 創立/基礎, Licensed under the Apache License, 見解/翻訳/版 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache ソフトウェア 創立/基礎. Other 指名するs may be trademarks of their 各々の owners.