mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
- Fixed bug where the PointerDeclaration of functions and methods didn't have the & operator
[SVN r17994]
This commit is contained in:
@@ -157,7 +157,7 @@ class Function(Declaration):
|
||||
'returns a declaration of a pointer to this function'
|
||||
result = self.result.FullName()
|
||||
params = ', '.join([x.FullName() for x in self.parameters])
|
||||
return '(%s (*)(%s))%s' % (result, params, self.FullName())
|
||||
return '(%s (*)(%s))&%s' % (result, params, self.FullName())
|
||||
|
||||
|
||||
def _MinArgs(self):
|
||||
@@ -211,7 +211,7 @@ class Method(Function):
|
||||
const = ''
|
||||
if self.const:
|
||||
const = 'const'
|
||||
return '(%s (%s::*)(%s) %s)%s' %\
|
||||
return '(%s (%s::*)(%s) %s)&%s' %\
|
||||
(result, self.class_, params, const, self.FullName())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user