Johannes Schaub - litb

less info
Feb
6
comment Is C++11 Uniform Initialization a replacement for the old style syntax?
are you sure that 5.2 to float is narrowing? See open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html
Dec
5
comment Is `catch(…) { throw; }` a bad practice?
+ for the uncensored truth
Oct
30
comment Whats the difference between syntax and grammar?
@delnan. Not true. For example int; is grammatically valid, but syntactically ill-formed in C++. The grammar has no problem with this code, but syntax constraints require that a name is provided if the first part of a declaration contains no class-specifier or enum-specifier or, in C++11, friend-specifier.
Jun
11
comment Deprecation considered harmful?
@Neil now that you have adapted your question, I can adapt my answer :)
May
29
comment C++ Interview question
+1 for "When interpreting arbitrary memory as an int, there may be trap representations which lead to undefined behavior."!
Mar
31
comment Interesting interview question
The vote count on the question and answers suggest this has been posted on reddit or something.
Mar
31
comment Interesting interview question
@Jon making a performance comparison if you allow the blocks to change N doesn't make sense. But if it's a trick question, they might want to hear an answer that exploits this one :)