[C++-sig] operators

Stefan Seefeld seefeld at sympatico.ca
Thu Oct 10 18:09:47 CEST 2002


hi there,

I'v defined 'std::ostream &operator << (std::ostream &, const Matrix &);'

and then def'ed 'str' as documented in the tutorial. Everything compiles
fine, but when I try to print my matrix, I get

RuntimeError: bad lexical cast: source type value could not be 
interpreted as target

What went wrong ?

Thanks,
		Stefan






More information about the Cplusplus-sig mailing list