On 04/25/2018 08:17 AM, Eric Lemanisser wrote:

    Support for nested structures is easy to fix and will just take a
    day or
    two to do so. For example:

    struct A
    {
        struct B
        {
        };
    };

    Will be converted into the following so that I can have their
    specialization in a top-level namespace:

    struct A__B
    {
    };

    struct A
    {
    };


This would break existing code, as name lookup from nested class should visit first enclosing class before visiting namespace. Also, the nested class must have access to all names (private, protected, etc) to which the enclosing class has access (http://en.cppreference.com/w/cpp/language/nested_types)

I forgot to mention that these rewritten structures are used to hold meta-data only, used internally.


Regards,
-Phil

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to