[RFC][PATCH] Replace deprecated mem_fun_ref with lambda

Richard Kimberly Heck rikiheck at lyx.org
Wed Feb 12 21:57:40 UTC 2020


On 2/12/20 2:45 PM, Jean-Marc Lasgouttes wrote:
> Hi there,
>
> Here is a patch to fix a message from Stephan that nobody but me saw,
> because I discarded it instead of accepting it :) BTW, Attachment size
> was over 500k, what would be a good limit size?
>
> I replace a thing I do not really understand with another thing that I
> do not really understand either. Can someone tell me whether the use o
> lambda expression is OK? I do not know how to test it.

It's not like I understand this either, but it looks to me completely
parallel to Example 2 here:

   
https://docs.microsoft.com/en-us/cpp/cpp/examples-of-lambda-expressions?view=vs-2019

It looks to me like this is not used a whole lot, but one place it is
used (indirectly) is in LFUN_REFERENCE_NEXT. So if that seems to work
right, then it should be fine.

Riki




More information about the lyx-devel mailing list