Coding Guidelines for Integral Constant Expressions
Edit Page
Report
Scan day: 16 February 2014 UTC
-5
Virus safety - good
Description: This short article from the boost project is designed to provide a set of guidelines and workarounds that will allow integral constant expressions to be used in a manner portable to many compilers.
Coding Guidelines for Integral Constant Expressions ...one of the most highly regarded and expertly designed C++ library projects in the world. Coding Guidelines for Integral Constant Expressions Integral Constant Expressions are used in many places in C++; as array bounds, as bit-field lengths, as enumerator initialisers, and as arguments to non-type template parameters. However many compilers have problems handling integral constant expressions; as a result of this, programming using non-type template parameters in particular can be fraught with difficulty, often leading to the incorrect assumption that non-type template parameters are unsupported by a particular compiler. This short article is designed to provide a set of guidelines and workarounds that, if followed, will allow integral constant expressions to be used in a manner portable to all the compilers currently supported by boost. Although this article is mainly targeted at boost library authors, it may also be useful for users who want to understand why boost code is written in a particular way, or who want to write portable code themselves.
Size: 1120 chars
Contact Information
Email: —
Phone&Fax: —
Address: —
Extended: —
WEBSITE Info
Page title: | Coding Guidelines for Integral Constant Expressions |
Keywords: | |
Description: | |
IP-address: | 129.79.13.33 |