C++ odds and ends