From f675a6bdd3af4b7751184e218a4f1dabde1a175e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Wed, 23 Mar 2022 14:28:12 -0400
Subject: [PATCH] python: adapt for C++17

---
 python/opendht.pyx | 2 +-
 python/setup.py.in | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/python/opendht.pyx b/python/opendht.pyx
index 6a66d2cb..454deffe 100644
--- a/python/opendht.pyx
+++ b/python/opendht.pyx
@@ -1,5 +1,5 @@
 # distutils: language = c++
-# distutils: extra_compile_args = -std=c++14
+# distutils: extra_compile_args = -std=c++17
 # distutils: include_dirs = ../../include
 # distutils: library_dirs = ../../src
 # distutils: libraries = opendht gnutls
diff --git a/python/setup.py.in b/python/setup.py.in
index f5029b68..168b126e 100644
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -50,8 +50,8 @@ setup(name="opendht",
           ["@CURRENT_SOURCE_DIR@/opendht.pyx"],
           include_dirs = ['@PROJECT_SOURCE_DIR@/include'],
           language="c++",
-          extra_compile_args=["-std=c++14"],
-          extra_link_args=["-std=c++14"],
+          extra_compile_args=["-std=c++17"],
+          extra_link_args=["-std=c++17"],
           libraries=["opendht"],
           library_dirs = ['@CURRENT_BINARY_DIR@', '@PROJECT_BINARY_DIR@']
       ))
-- 
GitLab