Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pontobart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pontobart
3y ago
Off-by-one error given that 1900 was the last year of the century?
2.
▲
by
pontobart
10y ago
You cannot overload on the const. If you try to define both int a(int b) and int a(const int b) the compiler will complain about a redefinition. You can declare the function using int a(int b) in the header and then define it via int a(cons