int column() const { return column_; }
protected:
- int overflow(int);
+ int_type overflow(int_type);
int sync();
private:
setg(0, 0, 0);
}
-int TexStreamBuffer::overflow(int c)
+TexStreamBuffer::int_type TexStreamBuffer::overflow(TexStreamBuffer::int_type c)
{
if (c == '\n') {
++line_;
int main(int argc, char *argv[])
{
- TexStream out(std::cout.rdbuf());
+ TexStream out(cout.rdbuf());
char c;
- while (std::cin) {
- if (std::cin.get(c))
+ while (cin) {
+ if (cin.get(c))
out.put(c);
}
- std::cout << "line count: " << out.line() << std::endl;
+ cout << "line count: " << out.line() << endl;
return 0;
}