Fix build issues

- `std::copy_n` requires to #include <algorithm>
- `std::optional` requires C++17 or newer
This commit is contained in:
German Lashevich
2022-05-29 20:10:00 +02:00
committed by fabian
parent eaa8a3ff3f
commit ae5a2c345d
2 changed files with 4 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ target_link_libraries(i3ipc++
)
target_compile_options(i3ipc++
PRIVATE -std=c++11 -Wall -Wextra -Wno-unused-parameter
PRIVATE -std=c++17 -Wall -Wextra -Wno-unused-parameter
)
target_compile_definitions(i3ipc++

View File

@@ -8,6 +8,7 @@ extern "C" {
#include <errno.h>
}
#include <algorithm>
#include <cstring>
#include <ios>