Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



>virtual static friend protected volatile templated function pointer

I know what... five of those are...


you can't have a virtual static function. Either, but not both. The rest though are all basic c++


You 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.


Welp, that's terrifying.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: