4 ms·
From The Night Watch: Similar to the Necronomicon, a C++ source code file is a wicked, obscure document that’s filled with cryptic incantations and forbidden k
by ColinCochrane 13y ago
From The Night Watch:
Similar to the Necronomicon, a C++ source code file is a wicked, obscure document that’s filled with cryptic incantations and forbidden knowledge. When it’s 3 A.M., and you’ve been debugging for 12 hours and you encounter a virtual static friend protected volatile templated function pointer, you want to go into hibernation and awake as a werewolf and then find the people who wrote the C++ standard and bring ruin to the things that they love.
- krapp 13y ago>virtual static friend protected volatile templated function pointer I know what... five of those are...
- hnriot 13y agoyou can't have a virtual static function. Either, but not both. The rest though are all basic c++
- edraferi 13y agoWelp, that's terrifying.
- rcxdude 13y agoYou can however have a static function pointer to a virtual function (although it wouldn't be a template, it could be part of a template). They do in fact work like virtual functions still. So that particular thing could exist, and be useful, and probably does exist somewhere in boost.