C++ helper.

@Kacper Danelski