Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: ThunderSleeps
The author, James Mickens, sure has a way with words. A an applications developer with a good amount of C++ in my repository, this part made me guffaw. Sadly though, the fictional compiler diagnostic is all too real. :)


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. The C++ STL, with its dyslexia-inducing syntax blizzard of colons and angle brackets, guarantees that if you try to declare any reasonable data structure, your first seven attempts will result in compiler errors of Wagnerian fierceness:

Syntax error: unmatched thing in thing from std::nonstd::__
map<_Cyrillic, _$$$dollars>const basic_string< epic_
mystery,mongoose_traits < char<, __default_alloc_<casual_
Fridays = maybe>>
One time I tried to create a list<map<int>>, and my syntax errors caused the dead to walk among the living.
9 posted on 11/19/2013 7:33:42 PM PST by re_nortex (DP - that's what I like about Texas)
[ Post Reply | Private Reply | To 6 | View Replies ]


To: re_nortex

Obviously you need a space between the >> so it recognizes the template declaration rather than a right shift. ;-) And hey, don’t be hating on the STL, doesn’t everyone love the fun little front() pop_front() dance to get a value out of a queue?


16 posted on 11/19/2013 7:49:37 PM PST by ThunderSleeps (Stop obarma now! Stop the hussein - insane agenda!)
[ Post Reply | Private Reply | To 9 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson