{
unsigned int s;
opt->second >> s;
- if (s >= _End)
+ if (s >= Table::numStyles)
{
cerr << sformat(_("Invalid table style %d."), s) << " "
- << sformat(_("Use an integer number from %d to %d"), 0, _End - 1) << endl;
+ << sformat(_("Use an integer number from %d to %d."), 0, Table::numStyles - 1) << endl;
exit(EXIT_FAILURE);
}
Table::defaultStyle = (TableLineStyle) s;
#include <iosfwd>
#include <list>
#include <vector>
+
using std::string;
using std::ostream;
using std::list;
static TableLineStyle defaultStyle;
+ static const unsigned int numStyles = _End;
+
void add (const TableRow& tr);
void setHeader (const TableHeader& tr);
void dumpTo (ostream& stream) const;