Ctor for C++.