Closed grigorig closed 3 years ago
Thank you for letting me know, that's something I did not account for. I'll get that fixed.
Fixed on branch master
, leaving this open until a release is published.
I also noticed generating a getter for a reference data member will return a reference. Since I don't have experience with using reference data members, is this typical? Or should it just return the value?
It needs to return a reference as classes might have a deleted copy constructor.
Gotcha, thank you!
Fixed in v0.4.2
The setter generator generates a declaration like
void setSomething(const Something& &something)
for a member of typeSomething&
, which is a syntax error.