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

ckout does not work with long double #3862

Open
Sh0g0-1758 opened this issue Dec 26, 2024 · 0 comments
Open

ckout does not work with long double #3862

Sh0g0-1758 opened this issue Dec 26, 2024 · 0 comments

Comments

@Sh0g0-1758
Copy link

Hello! I was doing the tutorial exercises for charm++ when I noticed that ckout does not work with long double. Program to reproduce this behaviour :

mainmodule play {
    mainchare start {
        entry start(CkArgMsg* msg);
    }
}
#include<stdio.h>

#include "play.decl.h"

class start : public CBase_start {
public:
    start(CkArgMsg* m) {
        long double k = 3456.344134;
        ckout << "k = " << k << endl;
    }
};

#include "play.def.h"

Compilation error :

play.cc:9:25: error: ambiguous overload for ‘operator<< (operand types are ‘CkOutStream’ and ‘long double’)
    9 |         ckout << "k = " << k << endl;
      |         ~~~~~~~~~~~~~~~ ^~ ~
      |               |            |
      |               CkOutStream  long double
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

1 participant