fixed error when wrapping const member functions where
returnType!=void