Utils for C++