C++ miscellaneous