Revision: 139
Author: roman_yakovenko
Date: 2006-05-18 08:09:38 -0700 (Thu, 18 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=139&view=rev
Log Message:
-----------
applying "is_noncopyable" Allen patch
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-05-18 14:07:18 UTC (rev 138)
+++ pygccxml_dev/pygccxml/declarations/type_traits.py 2006-05-18 15:09:38 UTC (rev 139)
@@ -671,7 +671,11 @@
if base_desc.related_class.decl_string in ('::boost::noncopyable', '::boost::noncopyable_::noncopyable' ):
return True
if not has_trivial_copy( base_desc.related_class ):
- return True
+ protected_ctrs = filter( lambda x: isinstance( x, calldef.constructor_t ) \
+ and x.is_copy_constructor
+ , base_desc.related_class.protected_members )
+ if not protected_ctrs:
+ return True
if not has_trivial_copy( class_ ) \
or not has_public_constructor( class_ )\
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|