[LyX/master] * xml.cpp - include cleanup.

Kornel Benko kornel at lyx.org
Tue May 20 06:58:41 UTC 2025


Am Tue, 20 May 2025 08:09:58 +0200
schrieb Pavel Sanda <sanda at lyx.org>:

> On Tue, May 20, 2025 at 07:32:54AM +0200, Kornel Benko wrote:
> > I get now:
> > /usr2/src/lyx/lyx-git/src/xml.cpp:138:40: error: no member named 'find_if' in
> > namespace 'std'; did you mean 'std::ranges::find_if'? 138 |
> > attributes.erase(attributes.begin(), std::find_if(attributes.begin(),
> > attributes.end(), | ^~~~~~~~~~~~ |
> >                                std::ranges::find_if
> > /usr/bin/../lib/gcc/x86_64-linux-gnu/14/../../../../include/c++/14/bits/ranges_util.h:543:33:
> > note: 'std::ranges::find_if' declared here 543 |   inline constexpr __find_if_fn
> > find_if{}; |                                 ^ 1 error generated.  
> 
> Does adding #include <algorithm> help?
> 
> (If so please commit, not on my machine).
> Pavel

Yes, it helps.
Commit ccf60e2c

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20250520/ae4675b7/attachment.sig>


More information about the lyx-devel mailing list