Closed piggestbaby closed 6 years ago
Hi,
The problem is that currently Cheerp does not support virtual base classes. They are used to solve the diamond problem of multiple inheritance, and since we cannot use them, we needed to remove one of the base classes of basic_iostream.
In this particular case it may not be an issue though, because you can use the ostringstream
class:
#include <string>
#include <sstream>
using namespace std;
// webMain is the entry point for web applications written in Cheerp.
void webMain()
{
string str;
ostringstream s;
s << str;
}
Fixed as Cheerp 2.0RC2
This sample code will fail when compiled with cheerp:
It was caused by file istream line 1474: