-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels