7 Formatter::Formatter(const string &f):
14 Formatter::Formatter(const Formatter &other):
16 pos(fmt.begin()+(other.pos-other.fmt.begin())),
20 Formatter &Formatter::operator=(const Formatter &other)
26 pos = fmt.begin()+(other.pos-other.fmt.begin());
27 result = other.result;
31 const string &Formatter::str() const
34 throw format_error("Too few arguments for format");
39 void Formatter::advance()
41 for(; pos!=fmt.end(); ++pos)
47 throw format_error("Malformed format string");
56 Fmt Formatter::get_conversion()
59 throw format_error("Too many arguments for format");
62 for(; i!=fmt.end(); ++i)
67 throw format_error("Malformed format string");