Timeline for Minesweeper C++
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2019 at 18:40 | comment | added | Sandro4912 |
digging this up. nowadays all this can be constexpr instead of const int if c++11 available. That will make sure you have a true compile time constant.
|
|
Jul 14, 2016 at 8:31 | comment | added | EshelBM | yeah I don't know why i did that... | |
Jul 13, 2016 at 20:08 | comment | added | pm100 | because i dont know what constexpr does :-) | |
Jul 13, 2016 at 19:41 | comment | added | Ped7g |
And if this is supposed to be C++, why not to use constexpr instead of const in this particular case.
|
|
Jul 12, 2016 at 22:00 | comment | added | pm100 | because macros are invisible to the compiler and thus break type safety, debugging, compiler diagnostics,.... Almost all the common uses of macros are no longer needed, See scott myers effective c++ item #1 | |
S Jul 12, 2016 at 21:45 | history | suggested | user20300 | CC BY-SA 3.0 |
minor style improvements
|
Jul 12, 2016 at 21:26 | comment | added | Brian Sutherland | Why do you suggest to not use macros in c++ code? | |
Jul 12, 2016 at 19:48 | review | Suggested edits | |||
S Jul 12, 2016 at 21:45 | |||||
Jul 12, 2016 at 16:49 | history | answered | pm100 | CC BY-SA 3.0 |