Re:Cppquiz – Figure what a given C++ program does
by eridius on Monday December 02, 2013 @03:44PM
(#6836381)
You gave up too early. How about the question that tests your knowledge of std::async behavior, in a way that has very real practical results? (very real in that if you don't understand the behavior, you're almost certainly using std::async incorrectly and with no benefit to your code).
Or the one that makes sure you understand that, if a function isn't declared virtual, then you get static dispatch instead.
Or, heck, the one that ensures you know that floating-point literals default to double, and that this fact affects function overload resolution.
Or the one that makes sure you understand that, if a function isn't declared virtual, then you get static dispatch instead.
Or, heck, the one that ensures you know that floating-point literals default to double, and that this fact affects function overload resolution.