Correctly avoid function<void>