GNU Info

Info Node: (gcc-300.info)C++ Misunderstandings

(gcc-300.info)C++ Misunderstandings


Next: Protoize Caveats Prev: Disappointments Up: Trouble
Enter node , (file) or (file)node

Common Misunderstandings with GNU C++
=====================================

   C++ is a complex language and an evolving one, and its standard
definition (the ISO C++ standard) was only recently completed.  As a
result, your C++ compiler may occasionally surprise you, even when its
behavior is correct.  This section discusses some areas that frequently
give rise to questions of this sort.

Static Definitions
Static member declarations are not definitions
Temporaries
Temporaries may vanish before you expect
Copy Assignment
Copy Assignment operators copy virtual bases twice

automatically generated by info2www version 1.2.2.9