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

Ubpa::detail::constexpr_value_name now can receive a constexpr enum value #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Steelwall2014
Copy link

@Steelwall2014 Steelwall2014 commented May 19, 2023

Ubpa::detail::constexpr_value_name now can receive a constexpr enum value as a template parameter。添加这个的原因是UDRefl这个反射库依赖了这个函数,而这个函数不能接收enum常量参数,导致反射库在有些情况下会编译不通过,我在隔壁提了issue:Ubpa/UDRefl#20
在编译期获取enum值的字符串的方法是从magic_enum库中找到的。

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

Successfully merging this pull request may close these issues.

1 participant