Ticket #7942: create_tables.cpp.diff
File create_tables.cpp.diff, 878 bytes (added by , 10 years ago) |
---|
-
create_tables.cpp
21 21 #include <algorithm> 22 22 #include <string> 23 23 #include <map> 24 #include <iomanip> 24 25 25 26 // We place the data here. Each line comprises various fields 26 27 typedef std::vector<std::string> ucd_line; … … 422 423 void print_table(Out& out, C const& c, bool trailing_comma, int width = 4, int group = 16) 423 424 { 424 425 int const tab = 4; 425 C::size_type size = c.size();426 typename C::size_type size = c.size(); 426 427 BOOST_ASSERT(size > 1); 427 428 print_tab(out, tab); 428 429 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) 430 431 { 431 432 out << ", "; 432 433 if ((i % group) == 0)