[pygccxml-commit] SF.net SVN: pygccxml:[1783] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2009-12-24 21:26:17
|
Revision: 1783
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1783&view=rev
Author: roman_yakovenko
Date: 2009-12-24 21:25:59 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
according to MSDN(http://msdn.microsoft.com/en-us/library/s2ff0fz8%28VS.100%29.aspx) conversion constructor is a constructor that could be called with one argument - this change implements this behaviour - small bug fix
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py
pyplusplus_dev/unittests/data/casting_to_be_exported.hpp
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2009-12-23 21:25:58 UTC (rev 1782)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2009-12-24 21:25:59 UTC (rev 1783)
@@ -348,7 +348,7 @@
return False
if self.is_copy_constructor:
return False
- if 1 != len( self.required_args ):
+ if not( len( self.arguments) and len( self.required_args ) < 2 ):
return False
if self.parent.find_out_member_access_type( self ) != declarations.ACCESS_TYPES.PUBLIC:
return False
Modified: pyplusplus_dev/unittests/data/casting_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/casting_to_be_exported.hpp 2009-12-23 21:25:58 UTC (rev 1782)
+++ pyplusplus_dev/unittests/data/casting_to_be_exported.hpp 2009-12-24 21:25:59 UTC (rev 1783)
@@ -9,7 +9,7 @@
namespace casting{
struct conversion_constructor_t{
- conversion_constructor_t( int a, int b=0 )
+ conversion_constructor_t( int a=2, int b=0 )
: value_a( a* (-1) ), value_b( b * (-1) )
{}
int value_a;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|