autocxx icon indicating copy to clipboard operation
autocxx copied to clipboard

Fix generated wrapper for nested struct with static fn

Open roife opened this issue 1 year ago • 2 comments

This PR fixes an issue with the wrappers for static functions in nested structs.

See the added test case:

struct A {
    struct B {
        static void f() {}
    };
};

Currently, autocxx would generates erroneous code namespace::A_B::f() instead of namespace::A::B::f().

roife avatar Jul 16 '24 06:07 roife

Thanks for this - I'm unclear why the github CI hasn't run the full suite of tests against it, and I don't want to merge it without that.

adetaylor avatar Aug 30 '24 07:08 adetaylor

I raised another PR for the same code to get tests running - #1387 - there's a failure which needs looking into.

adetaylor avatar Aug 30 '24 08:08 adetaylor

Closing in favor of #1387

adetaylor avatar Feb 24 '25 16:02 adetaylor