Skip to content

Commit

Permalink
Fix build with gcc 14 (#64)
Browse files Browse the repository at this point in the history
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(
      |                         ^~~~~~

Signed-off-by: Kostadin Shishmanov <[email protected]>
  • Loading branch information
Kostadin authored Nov 7, 2023
1 parent 3da1c22 commit af1bddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <fstream>
#include <cassert>
#include <set>
#include <algorithm>

#include "option-impl.hpp"

Expand Down

0 comments on commit af1bddc

Please sign in to comment.