We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 756549d commit ceecf7dCopy full SHA for ceecf7d
pygccxml/declarations/container_traits.py
@@ -12,6 +12,7 @@
12
from . import cpptypes
13
from . import templates
14
from . import type_traits
15
+from . import namespace
16
from . import class_declaration
17
from .. import utils
18
@@ -411,7 +412,8 @@ def get_container_or_none(self, type_):
411
412
"declaration starts with " + self.name() + '<')
413
return
414
- if type_.declaration.parent.name == "tr1":
415
+ is_ns = isinstance(type_.declaration.parent, namespace.namespace_t)
416
+ if is_ns and type_.declaration.parent.name == "tr1":
417
# When using libstd++, some container traits are defined in
418
# std::tr1:: . See remove_template_defaults_tester.py.
419
# In this case the is_defined_in_xxx test needs to be done
0 commit comments