removed ambiguous constructor in c++ API.