[pygccxml-commit] SF.net SVN: pygccxml: [222] pygccxml_dev/pygccxml/declarations/type_traits.py
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-06-18 05:22:10
|
Revision: 222 Author: roman_yakovenko Date: 2006-06-17 22:22:04 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=222&view=rev Log Message: ----------- Porting indexing suite to Windows Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/type_traits.py Modified: pygccxml_dev/pygccxml/declarations/type_traits.py =================================================================== --- pygccxml_dev/pygccxml/declarations/type_traits.py 2006-06-17 18:11:32 UTC (rev 221) +++ pygccxml_dev/pygccxml/declarations/type_traits.py 2006-06-18 05:22:04 UTC (rev 222) @@ -802,7 +802,7 @@ """returns reference to value_type of the vector""" cls = vector_traits.class_declaration( type ) if isinstance( cls, class_declaration.class_t ): - return remove_declarated( cls.typedef( "value_type" ).type ) + return remove_declarated( cls.typedef( "value_type", recursive=False ).type ) else: value_type_str = templates.args( cls.name )[0] if not value_type_str.startswith( '::' ): @@ -838,7 +838,7 @@ cls = remove_cv( type ) cls = remove_declarated( type ) if isinstance( cls, class_declaration.class_t ): - return remove_declarated( cls.typedef( "value_type" ).type ) + return remove_declarated( cls.typedef( "value_type", recursive=False ).type ) elif not isinstance( cls, ( class_declaration.class_declaration_t, class_declaration.class_t ) ): raise RuntimeError( "Unable to find out shared_ptr value type. shared_ptr class is: %s" % cls.decl_string ) else: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |