Skip to content

Commit

Permalink
Utils: add support for new c++ versions
Browse files Browse the repository at this point in the history
  • Loading branch information
iMichka committed Aug 21, 2023
1 parent 10dadd8 commit b971292
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changes
=======

Version 2.5.0
-------------

1. Add support for new cxx versions in cxx_standard class


Version 2.4.0
-------------

Expand Down
8 changes: 6 additions & 2 deletions src/pygccxml/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b971292

Please sign in to comment.