C++ tricks