f(void) vs f()
"In fact, the f(void) style has been called an "abomination" by Bjarne Stroustrup, the creator of C++, Dennis Ritchie, the co-creator of C, and Doug McIlroy, head of the research department where Unix was born."
This commit is contained in:
@@ -68,7 +68,7 @@ toString (const bool&);
|
||||
|
||||
double logSum (double, double);
|
||||
|
||||
unsigned maxUnsigned (void);
|
||||
unsigned maxUnsigned();
|
||||
|
||||
unsigned stringToUnsigned (std::string);
|
||||
|
||||
@@ -258,7 +258,7 @@ Util::logSum (double x, double y)
|
||||
|
||||
|
||||
inline unsigned
|
||||
Util::maxUnsigned (void)
|
||||
Util::maxUnsigned()
|
||||
{
|
||||
return std::numeric_limits<unsigned>::max();
|
||||
}
|
||||
|
Reference in New Issue
Block a user