diff --git a/modules/python/src2/gen2.py b/modules/python/src2/gen2.py index 233587c9cb..243442cbdd 100755 --- a/modules/python/src2/gen2.py +++ b/modules/python/src2/gen2.py @@ -201,7 +201,8 @@ simple_argtype_mapping = { "int": ArgTypeInfo("int", FormatStrings.int, "0", True), "float": ArgTypeInfo("float", FormatStrings.float, "0.f", True), "double": ArgTypeInfo("double", FormatStrings.double, "0", True), - "c_string": ArgTypeInfo("char*", FormatStrings.string, '(char*)""') + "c_string": ArgTypeInfo("char*", FormatStrings.string, '(char*)""'), + "string": ArgTypeInfo("std::string", FormatStrings.object, None, True), }