Skip to content

Commit 3ad19b2

Browse files
committed
workaround for problem with boost >=1.54
1 parent b9816f3 commit 3ad19b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pygccxml/parser/scanner.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,11 @@ def __read_fundamental_type(self, attrs ):
369369
try:
370370
return FUNDAMENTAL_TYPES[ attrs.get( XML_AN_NAME, '' ) ]
371371
except KeyError:
372-
raise RuntimeError( "pygccxml error: unable to find fundamental type with name '%s'."
373-
% attrs.get( XML_AN_NAME, '' ) )
372+
return None
373+
# This code chokes on atomic_int_type in Boost 1.54 (and higher, probably).
374+
# It seems ok to just silently ignore this error.
375+
# raise RuntimeError( "pygccxml error: unable to find fundamental type with name '%s'."
376+
# % attrs.get( XML_AN_NAME, '' ) )
374377

375378
def __read_offset_type( self,attrs ):
376379
base = attrs[ XML_AN_BASE_TYPE ]

0 commit comments

Comments
 (0)