3 ms·
To be fair to the C++ programmers, there are several legitimate reasons to avoid std::map<> - for instance, if your project doesn't use exceptions.
by mappu 14y ago
To be fair to the C++ programmers, there are several legitimate reasons to avoid std::map<> - for instance, if your project doesn't use exceptions.
- marshray 14y agoSo you don't use std::string or dynamic_cast<>() either?
- Ogre 14y agoIt's typical in game development to disable both exceptions and RTTI entirely. dynamic_cast is out on either of those counts. std::almost_everything is out due to exceptions. EA released a GPL'd "EASTL" library a few years ago for those and other reasons, you can read all about it here: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2271.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n227...
- marshray 14y agoI think we've had this conversation before :-)
- Ogre 14y agoI've posted that link once or twice before (once or twice literally, not sarcastically), it wouldn't surprise me if I was replying to you in one of those instances :) Here, I found it, we both posted in this thread, but not to each other: http://news.ycombinator.com/item?id=3560158 http://news.ycombinator.com/item?id=3560158
- marshray 14y agoPerhaps I saw that link on Reddit?