Revision: 929
http://svn.sourceforge.net/pygccxml/?rev=929&view=rev
Author: roman_yakovenko
Date: 2007-02-25 01:13:50 -0800 (Sun, 25 Feb 2007)
Log Message:
-----------
adding small work-around to bug in GCCXML
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/type_traits.py
Modified: pygccxml_dev/pygccxml/declarations/type_traits.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/type_traits.py 2007-02-24 22:10:41 UTC (rev 928)
+++ pygccxml_dev/pygccxml/declarations/type_traits.py 2007-02-25 09:13:50 UTC (rev 929)
@@ -802,8 +802,13 @@
"""implementation details"""
#It is not enough to check base classes, we should also to check
#member variables.
- #if is_std_string( class_ ) or is_std_wstring( class_ ):
- # return False
+
+ if has_trivial_copy( class_ ) \
+ and has_public_constructor( class_ ) \
+ and has_public_assign( class_ ) \
+ and has_public_destructor( class_ ):
+ return False
+
mvars = filter( lambda x: isinstance( x, variable.variable_t )
, class_.declarations )
for mvar in mvars:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|