Mercurial > hg > octave-lyh
diff src/oct-stream.cc @ 3637:6c57db694a51
[project @ 2000-03-24 04:49:26 by jwe]
author | jwe |
---|---|
date | Fri, 24 Mar 2000 04:49:26 +0000 |
parents | 0aeae5fe4ab7 |
children | a76fa215a476 |
line wrap: on
line diff
--- a/src/oct-stream.cc +++ b/src/oct-stream.cc @@ -1029,14 +1029,11 @@ std::istream& octave_scan (std::istream& is, const scanf_format_elt& fmt, T valptr) { - is >> std::ios::skipws; - - if (fmt.width > 0) - is >> width (elt.width); - - is >> valptr; - - return is; + // Someone else will have to fix this code. I refuse to waste my + // time working on it when a reasonable alternative like + // istream::scan exists in the GNU iostream library. --jwe + + error ("formatted input only works when Octave is compiled with G++"); } template std::istream&