std::function<void(void)> becomes std::function<void()>? +1
On Sun, Dec 13, 2015 at 10:55 AM, Jie Yu <yujie....@gmail.com> wrote: > +1 > > On Sun, Dec 13, 2015 at 10:46 AM, Michael Park <mp...@apache.org> wrote: > > > Hello, > > > > In the C++ world, the *void* parameter is considered to be only there > for C > > compatibility reasons. > > > > We do a good job of not using *void *parameters in function declarations, > > e.g., *void F();*. On the other hand, we're *not* so good doing so for > > function types, e.g., *std::function<void(void)>*. > > > > I would like to see the codebase converge to *not* use *void* as a > > parameter type, and would like feedback if anyone holds strong opposing > > opinions. > > > > Thanks, > > > > MPark. > > >