Commit 957b615b (Fix another crash with Grid pasting) breaks compilation with Visual C++ 2019

Jürgen Spitzmüller spitz at lyx.org
Mon Aug 17 05:35:27 UTC 2020


Am Sonntag, den 16.08.2020, 21:26 +0100 schrieb José Abílio Matos:
> What is wrong with
>  
> pos_type ipos = min(cur.pos(), cell(i).size());
>  
> it expresses intent better than the other code, no? :-)

This was my first choice, too. However, it triggers:

mathed/InsetMathGrid.cpp:1637:51: error: no matching function for call
to ‘min(lyx::pos_type&, std::__cxx1998::vector<lyx::MathAtom,
std::allocator<lyx::MathAtom> >::size_type)’
 1637 |      pos_type ipos = min(cur.pos(), cell(i).size());


pos() is pos_type (signed), size() is size_t (unsigned)

Jürgen


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200817/32494fc3/attachment.asc>


More information about the lyx-devel mailing list