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

xhas #8

Open
ouxianghui opened this issue Mar 8, 2021 · 1 comment
Open

xhas #8

ouxianghui opened this issue Mar 8, 2021 · 1 comment

Comments

@ouxianghui
Copy link

请问原来x2struct中提供的xhas()方法在xpack中是否有替代函数?

后面是否考虑支持std::optional,开发者可通过判成员是否为std::nullopt,达到类似调用xhas()的目的。

@xyz347
Copy link
Owner

xyz347 commented Mar 9, 2021

xpack的一个核心改动之一就是不对原有结构体做变量入侵,所以暂时还没有xhas的替代方案
std::optional会导致使用复杂,暂时没计划支持

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

No branches or pull requests

2 participants