From 613f19a69b9308aa52903c920897d2cfe97d841d Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Thu, 10 Mar 2022 12:57:03 -0500 Subject: [PATCH 1/2] Switch to c++20, pipedal Fixes #21 --- src/ConfigMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConfigMain.cpp b/src/ConfigMain.cpp index ae413e2..fd5c6ff 100644 --- a/src/ConfigMain.cpp +++ b/src/ConfigMain.cpp @@ -449,7 +449,7 @@ void Install(const std::filesystem::path &programPrefix, const std::string endpo if (!userExists(SERVICE_ACCOUNT_NAME)) { - if (sysExec(USERADD_BIN " " SERVICE_ACCOUNT_NAME " -g " SERVICE_GROUP_NAME " -M -N -r") != EXIT_SUCCESS) + if (sysExec(USERADD_BIN " " SERVICE_ACCOUNT_NAME " -g " SERVICE_GROUP_NAME " -m -N -r") != EXIT_SUCCESS) { // throw PiPedalException("Failed to create service account."); } From 0ca1eb11d647c30319eec0a1f34829bdddb496ec Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Thu, 10 Mar 2022 12:57:42 -0500 Subject: [PATCH 2/2] To C++ 20 --- .vscode/c_cpp_properties.json | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 2111419..28cd883 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -8,7 +8,7 @@ ], "compilerPath": "/usr/bin/gcc", "cStandard": "c17", - "cppStandard": "c++17", + "cppStandard": "c++20", "intelliSenseMode": "linux-gcc-arm64", "compileCommands": "${workspaceFolder}/build/compile_commands.json", "configurationProvider": "ms-vscode.cmake-tools" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4921510..30c64ad 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -61,7 +61,7 @@ endif() # specify the C++ standard -set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED True) set (USE_SANITIZE False)