Skip to content

Commit 9b6ddd7

Browse files
committed
Change C++ version to 17
1 parent cc8c919 commit 9b6ddd7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
build:
2323
strategy:
2424
matrix:
25-
os: [windows-latest, ubuntu-22.04]
25+
os: [windows-latest, ubuntu-20.04]
2626
arch: [x64, x86]
2727
include:
2828
- os: windows-latest
@@ -31,7 +31,7 @@ jobs:
3131
- os: windows-latest
3232
arch: x86
3333
CMAKE_ARCH_FLAG: -A Win32
34-
- os: ubuntu-22.04
34+
- os: ubuntu-20.04
3535
arch: x86
3636
CMAKE_ARCH_FLAG: -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32"
3737
- os: macos-13

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ project(gmsv_async_postgres
4242
# Enable -fPIC flag
4343
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
4444

45-
# Require C++ 20
46-
set(CMAKE_CXX_STANDARD 20)
45+
# Require C++ 17
46+
set(CMAKE_CXX_STANDARD 17)
4747
set(CMAKE_CXX_STANDARD_REQUIRED ON)
48-
set(CMAKE_CXX_EXTENSIONS ON)
48+
set(CMAKE_CXX_EXTENSIONS OFF)
4949

5050
# Enable multithreaded compilation on Windows
5151
if(MSVC)

source/util.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <Platform.hpp>
2-
#include <format>
32

43
#include "async_postgres.hpp"
54

0 commit comments

Comments
 (0)