Am Samstag, 29. Januar 2011 schrieb Tommaso Cucinotta: > insets/InsetTabular.cpp: In member function ‘int > lyx::Tabular::TeXTopHLine(lyx::otexstream&, size_t, std::string) const’: > insets/InsetTabular.cpp:2068: error: ambiguous overload for ‘operator<<’ > in > ‘lyx::operator<<(((lyx::otexstream&)((lyx::otexstream*)lyx::operator<<(((ly > x::otexstream&)((lyx::otexstream*)lyx::operator<<(((lyx::otexstream&)((lyx: > :otexstream*)os)), ((const char*)"\\expandafter")))), (((bool)((const
This cured it for me, but I fear it is not the proper c++ patch. Kornel
Index: src/insets/InsetTabular.cpp =================================================================== --- src/insets/InsetTabular.cpp (Revision 37360) +++ src/insets/InsetTabular.cpp (Arbeitskopie) @@ -2065,9 +2065,9 @@ //see http://groups.google.com/group/comp.text.tex/browse_thread/thread/af769424a4a0f289# if (lang == "slovak" || lang == "czech") os << "\\expandafter" << (use_booktabs ? "\\cmidrule" : "\\cline") - << "\\expandafter{\\expandafter" << c + 1 + offset << "\\string-"; + << "\\expandafter{\\expandafter" << (int) (c + 1 + offset) << "\\string-"; else - os << (use_booktabs ? "\\cmidrule{" : "\\cline{") << c + 1 + offset << '-'; + os << (use_booktabs ? "\\cmidrule{" : "\\cline{") << (int) (c + 1 + offset) << '-'; col_type cstart = c; for ( ; c < ncols() && topline[c]; ++c) {} @@ -2076,7 +2076,7 @@ if (column_info[j].alignment == LYX_ALIGN_DECIMAL) ++offset; - os << c + offset << "} "; + os << (int) (c + offset) << "} "; } } } @@ -2138,9 +2138,9 @@ //see http://groups.google.com/group/comp.text.tex/browse_thread/thread/af769424a4a0f289# if (lang == "slovak" || lang == "czech") os << "\\expandafter" << (use_booktabs ? "\\cmidrule" : "\\cline") - << "\\expandafter{\\expandafter" << c + 1 + offset << "\\string-"; + << "\\expandafter{\\expandafter" << (int) (c + 1 + offset) << "\\string-"; else - os << (use_booktabs ? "\\cmidrule{" : "\\cline{") << c + 1 + offset << '-'; + os << (use_booktabs ? "\\cmidrule{" : "\\cline{") << (int) (c + 1 + offset) << '-'; col_type cstart = c; for ( ; c < ncols() && bottomline[c]; ++c) {} @@ -2149,7 +2149,7 @@ if (column_info[j].alignment == LYX_ALIGN_DECIMAL) ++offset; - os << c + offset << "} "; + os << (int) (c + offset) << "} "; } } } @@ -2256,7 +2256,7 @@ // we only need code for the first multirow cell ismultirow = isMultiRow(cell); if (ismultirow) { - os << "\\multirow{" << rowSpan(cell) << "}{"; + os << "\\multirow{" << (int) rowSpan(cell) << "}{"; if (!getPWidth(cell).zero()) os << from_ascii(getPWidth(cell).asLatexString()); else
signature.asc
Description: This is a digitally signed message part.