Details
-
Bug
-
Resolution: Cannot Reproduce
-
P4: Low
-
1.2.x
-
Windows by default exhibits the issue. Linux does as well when using the avoid-protected-hack option.
Description
Having a protected enum inside a class within a namespace causes compilation issues when using the avoid-protected-hack option to shiboken. For example, the following code causes compilation issues:
namespace SampleNamespace { class SomeClass { protected: enum ProtectedEnum { ProtectedItem0, ProtectedItem1 }; }; }
The resulting auto-generated looks something like:
enum sample_SampleNamespace::SomeClass_ProtectedEnum_Surrogate {};
Obviously, the sample_SampleNamespace namespace does not exist and thereby causes compilation errors.
Attachments
Issue Links
- relates to
-
PYSIDE-817 shiboken: Code generated for protected methods using scoped enums does not compile with protected hack
- Closed