summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
767eef4)
The class should be considered as internal, but Parser invokes the bool
conversion from its own. This avoids having to export Input.
-Input::operator bool() const
-{
- return next>=0 || !in->eof();
-}
-
} // namespace DataFile
} // namespace Msp
} // namespace DataFile
} // namespace Msp
int get();
int peek();
unsigned get_line_number() const { return line; }
int get();
int peek();
unsigned get_line_number() const { return line; }
- explicit operator bool() const;
+ explicit operator bool() const { return (next>=0 || !in->eof()); }
};
} // namespace DataFile
};
} // namespace DataFile