Ticket #7942: create_tables.cpp.diff

File create_tables.cpp.diff, 878 bytes (added by p.brockamp@…, 10 years ago)

Eliminate compile erros under GCC

  • create_tables.cpp

     
    2121#include <algorithm>
    2222#include <string>
    2323#include <map>
     24#include <iomanip>
    2425
    2526// We place the data here. Each line comprises various fields
    2627typedef std::vector<std::string> ucd_line;
     
    422423void print_table(Out& out, C const& c, bool trailing_comma, int width = 4, int group = 16)
    423424{
    424425    int const tab = 4;
    425     C::size_type size = c.size();
     426    typename C::size_type size = c.size();
    426427    BOOST_ASSERT(size > 1);
    427428    print_tab(out, tab);
    428429    out << std::setw(width) << int(c[0]);
    429     for (C::size_type i = 1; i < size; ++i)
     430    for (typename C::size_type i = 1; i < size; ++i)
    430431    {
    431432        out << ", ";
    432433        if ((i % group) == 0)