Boost logo

Boost :

From: scleary_at_[hidden]
Date: 1999-12-29 12:29:40

> >> There's a lot of use of "(void)" for parameter lists. Since it's C++, I
> >> suggest you use "()" instead.
> > OK, I'll change this one -- stylistic convention. . . I do prefer to
> > "(void)" for overloaded operators, though.
> Why? Noting that "(void)" was added for compatibility with Standard C, I
> only use it if there is a special reason to do so. Does "(void)" make
> operator declarations clearer in some way that I'm overlooking?

Just a personal preference, especially for the parenthesis operator:
  void operator()(void);
  void operator*(void);
instead of:
  void operator()();
  void operator*();

It doesn't really matter.


Boost list run by bdawes at, gregod at, cpdaniel at, john at