From b9712925e82cf6a412097c77b03d68ed8f749844 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 --- CHANGELOG.md | 6 ++++++ src/pygccxml/utils/utils.py | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db53506c..55998a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ Changes ======= +Version 2.5.0 +------------- + +1. Add support for new cxx versions in cxx_standard class + + Version 2.4.0 ------------- 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):