C++ wrapper for libgamma