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

Struct::to_string broken for enumeration fields #203

Closed
VeaaC opened this issue Feb 4, 2021 · 0 comments · Fixed by #214
Closed

Struct::to_string broken for enumeration fields #203

VeaaC opened this issue Feb 4, 2021 · 0 comments · Fixed by #214
Labels
bug Something isn't working c++

Comments

@VeaaC
Copy link
Collaborator

VeaaC commented Feb 4, 2021

If you have a struct containing an enum, e.g.:

namespace ttf {
enum RestrictionType : u8 {
    DUMMY,
}
struct A {
    restriction_type : RestrictionType;
}
}

Then the generated A::to_string does not compile:

error: no match for ‘operator+’:
     "    restriction_type : " << +restriction_type << "," << std::endl
@VeaaC VeaaC added bug Something isn't working c++ labels Feb 4, 2021
@VeaaC VeaaC changed the title Struct::to_strong broken for enumeration fields Struct::to_string broken for enumeration fields Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c++
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant