Details
-
Bug
-
Resolution: Won't Do
-
P4: Low
-
None
-
5.14.1
-
None
Description
Note the following class and type system:
namespace NameSpace { struct Data { enum Enum {One,Two}; virtual ~Data() {} }; struct Class { Class(Data::Enum argument = Data::One); virtual ~Class() {} }; }
<?xml version="1.0"?> <typesystem package="MyPackage"> <namespace-type name="NameSpace"> <object-type name="Data"> <enum-type name="Enum"/> </object-type> <object-type name="Class"/> </namespace-type> </typesystem>
After running shiboken2, the generated constructor for ClassWrapper has the following signature:
ClassWrapper(NameSpace::Data::Enum argument = Data::One);
Note how NameSpace:: was prepended to the argument type, but not to its default value, which will generate an error when compiling the wrapper.