Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACCESS_PRIVATE_STATIC_FIELD lead to build failure when the static member is initialized out of the class body #29

Open
1shuaiwpeng opened this issue Jan 30, 2023 · 1 comment

Comments

@1shuaiwpeng
Copy link

1shuaiwpeng commented Jan 30, 2023

remove the line "Type Class::Name;" can fix the failure

/*#define ACCESS_PRIVATE_STATIC_FIELD(Class, Type, Name)
**Type Class::Name; / *
#define ACCESS_PRIVATE_STATIC_FIELD(Class, Type, Name)
PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_STATIC_FIELD(
PRIVATE_ACCESS_DETAIL_UNIQUE_TAG, Class, Type, Name)

@1shuaiwpeng
Copy link
Author

another solution is to call the destination macro: PRIVATE_ACCESS_DETAIL_ACCESS_PRIVATE_STATIC_FIELD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants