Port of meld to C++