WayfireWM / wf-config

A library for managing configuration files, written for wayfire
https://wayfire.org/
MIT License
18 stars 19 forks source link

Fix build with gcc 14 #64

Closed kostadinsh closed 1 year ago

kostadinsh commented 1 year ago

Fix building with gcc 14 by adding #include <algorithm> to src/file.cpp

FAILED: libwf-config.so.0.9.0.p/src_file.cpp.o ccache c++ -Ilibwf-config.so.0.9.0.p -I. -I.. -Iinclude -I../include -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -O0 -g -Wno-deprecated-declarations -fPIC -MD -MQ libwf-config.so.0.9.0.p/src_file.cpp.o -MF libwf-config.so.0.9.0.p/src_file.cpp.o.d -o libwf-config.so.0.9.0.p/src_file.cpp.o -c ../src/file.cpp ../src/file.cpp: In lambda function: ../src/file.cpp:419:25: error: ‘any_of’ is not a member of ‘std’ 419 | return std::any_of( | ^~

ammen99 commented 1 year ago

Thanks!