From a0c7a646bd68d00f1b9d59ea1c4cc2679661de53 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Mon, 21 Aug 2023 22:40:07 +0200 Subject: [PATCH] Utils: add support for new c++ versions Closes #148 --- src/pygccxml/utils/utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pygccxml/utils/utils.py b/src/pygccxml/utils/utils.py index 75838461..7a9deb5a 100644 --- a/src/pygccxml/utils/utils.py +++ b/src/pygccxml/utils/utils.py @@ -277,8 +277,12 @@ class cxx_standard(object): '-std=c++17': 201703, '-std=gnu++1z': 201703, '-std=gnu++17': 201703, - '-std=c++2a': float('inf'), - '-std=gnu++2a': float('inf'), + '-std=c++2a': 202002, + '-std=gnu++2a': 202002, + '-std=c++20': 202002, + '-std=gnu++20': 202002, + '-std=c++23': float('inf'), + '-std=gnu++23': float('inf'), } def __init__(self, cflags):