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

Casting in class error #24

Closed
jonathanberthias opened this issue May 31, 2018 · 1 comment
Closed

Casting in class error #24

jonathanberthias opened this issue May 31, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jonathanberthias
Copy link

There is a small bug when casting is done with a class member. As an example:

class Simple 
{
    int p;
  public:
    double get() {return p;}
};

yields

class Simple 
{
    int p;
  public:
    double get() {return static_cast<double>(this->p)p;}
};

An additionnal p is added after the cast, making the resulting code uncompilable.

Other than that, it is a great project !

@andreasfertig andreasfertig added the bug Something isn't working label May 31, 2018
@andreasfertig
Copy link
Owner

Hello Jonathan,

thank you! Fix is on its way.

@andreasfertig andreasfertig self-assigned this May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants