Skip to content

Commit

Permalink
Remove parentheses from destructor call to fix problem with clang 3.5
Browse files Browse the repository at this point in the history
The clang 3.5 compiler needs a slightly different syntax when calling
the destructor. It does not allow a set of parentheses between the
name of the destructor and the parentheses which cause the call.
  • Loading branch information
Dr15Jones committed Oct 1, 2014
1 parent a644476 commit 2a48422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cint/reflex/python/genreflex/gendict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,7 @@ def genDestructorDef(self, attrs, children):
dtorscope = '::' + cl + '::'
dtorimpl = '%svoid destructor%s(void*, void * o, const std::vector<void*>&, void *) {\n' % ( static, attrs['id'])
if (attrs['name'][0] != '.'):
return dtorimpl + '(((::%s*)o)->%s~%s)();\n}' % ( cl, dtorscope, attrs['name'] )
return dtorimpl + '((::%s*)o)->%s~%s();\n}' % ( cl, dtorscope, attrs['name'] )
else:
# unnamed; can't call.
return dtorimpl + ' // unnamed, cannot call destructor\n}'
Expand Down

0 comments on commit 2a48422

Please sign in to comment.