Skip to content

Commit 2b1efbb

Browse files
praetorian20iMichka
authored andcommitted
Add support for -std=c++17 & -std=c++2a flag
gcc/clang C++ standard version flags now support the -std=c++17 & -std=c++2a flags, along with their "gnu" counterparts. Unused `is_cxx*` functions have been deleted.
1 parent 87b4e12 commit 2b1efbb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pygccxml/utils/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,12 @@ class cxx_standard(object):
295295
'-std=gnu++1y': 201402,
296296
'-std=c++14': 201402,
297297
'-std=gnu++14': 201402,
298-
'-std=c++1z': float('inf'),
299-
'-std=gnu++1z': float('inf'),
298+
'-std=c++1z': 201703,
299+
'-std=c++17': 201703,
300+
'-std=gnu++1z': 201703,
301+
'-std=gnu++17': 201703,
302+
'-std=c++2a': float('inf'),
303+
'-std=gnu++2a': float('inf'),
300304
}
301305

302306
def __init__(self, cflags):

0 commit comments

Comments
 (0)