4 ms·
What is the reason for having your own Bool type in C++?
by aivarsk 9y ago
What is the reason for having your own Bool type in C++?
- petters 9y agoAnd why the redefinition of NULL? The author of this library is not experienced with C++. Nothing wrong with writing something and sharing it in order to learn, though! Just surprised to see it on the front page.
- therein 9y agoJust in case I guess. :) +// in case NULL is not defined +#ifndef NULL +#define NULL (0L) +#endif // NULL https://github.com/btwael/SuperString/commit/515f6896ee6a3e27c620c12ce3eb4d1236712a7e#diff-16e4497ff2c380d3d2f44673cb720e47R9 https://github.com/btwael/SuperString/commit/515f6896ee6a3e2...
- deleted 9y ago[deleted]
- a_t48 9y agoreturn this->_lengthComputed == ((Bool) 2); Obviously so that you can add a third value :) :)
- therein 9y agoLooking at the commit history on the project [0] (and inadvertently digging a bit deeper into the OP's StackOverflow reply history to notice that all are advertising his non-production ready projects) certainly gives a similar vibe. :) [0] https://github.com/btwael/SuperString/commits/master https://github.com/btwael/SuperString/commits/master
- ttul 8y agoOh man...