C++ gcc3.3.5 compilation error

Argiris Mokios amok at auth.gr
Thu Sep 15 19:57:33 EEST 2005


Kalispera,

prospa8w na kanw compile to:

void IInteger::write(ostream *st, int base) const
{
  char *str = to_string(base);
  (*st) << str;
  delete str;
}

kai mou vgazei:

error: no match for 'operator<<' in '*st << str'

Dokimasa kati type casting alla tipota.
Kamia idea?

stringstream::str  
http://www.cplusplus.com/ref/iostream/stringstream/str.html
ostream::operator<<   
http://www.cplusplus.com/ref/iostream/ostream/operatorltlt.html

-- 
Epur Si Muove




More information about the Linux-greek-users mailing list