2
0
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:
Bruno da Silva de Oliveira
2003-03-19 05:03:49 +00:00
parent 85f324efb6
commit d475fcaf7d

View File

@@ -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())