Topic: tellp returns what?
Author: larsbj@lyx.org (Lars Gullik =?iso-8859-1?Q?Bj=F8nnes?= )
Date: 2000/03/25 Raw View
int main() {
std::ostringstream ost;
std::cout << ost.tellp() << std::endl;
}
Should this return -1 (invalid) or 0?
It seems that the standard is not clear about this.
Lgb
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]