You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Incomplete pages in C++ use their own incomplete-cpp tag.


I've looked at some of the C rules and recommendations, and here are my
recommendations (smile) for copying them across to C++.

DCL09-A - not appropriate for C++ because of ERR00-A.

EXP08-A - perhaps already covered by OBJ30-C.
EXP34-C - perhaps covered by DAN34-C.

INT00-A - needs reworking for C++.
INT07-A - needs reworking for C++.
INT30-C - needs reworking for C++.
INT35-C - needs reworking for C++.
INT37-C - needs reworking for C++.

That's as far as I got.


When you copy this rule over to the C++ side:

FIO34-C. Use int to capture the return value of character IO functions

Be sure to add something about istream::get() which return int values, not char values.


Add to the C++ standard rules marked with exportable-c++.


Update references to C (eg C99) to references to C++


Under 'Implmeentation-Specific Details', test compliance with various C++ compilers (update from C compilers)


Make sure code examples illustrate valid C++ practices (except when illustrating a particular bad example)

  • No labels