I makes games and stuff.

Mar
10
comment Better size aligning?
@Victor What are you unsure about? It's at least as efficient as (probably more than) using back_inserter or push_back. If you're worried about max, replace it with a conditional (although it's almost guaranteed to get inlined).
Mar
9
awarded Teacher
Mar
9
answered Better size aligning?
Mar
7
awarded Autobiographer
Mar
7
comment Is it possible/legal to return reference to input temporary arguments which are passed by reference
I know it's just an example, but have you tried compiling and running that code? Aside from some syntax errors, it never copies any of the objects, and never creates any temporary variables.
Mar
7
comment Conditionally treating/casting a base class reference parameter as a derived class and giving it back
So you're basically asking, how to say data = derivedInst;? I don't believe this is possible unless the base class uses type erasure.
Mar
2
awarded Yearling
Feb
24
awarded Autobiographer
Feb
24
awarded Autobiographer
Feb
17
awarded Caucus
Jan
27
answered Automatic converstion without access to the classes
Jan
16
revised comma operator in a C++ for loop
added 55 characters in body
Jan
16
answered comma operator in a C++ for loop
Jan
15
revised Use "Stream-like" Input to C++ function
added 569 characters in body
Jan
15
answered Use "Stream-like" Input to C++ function
Dec
30
awarded Autobiographer
Dec
30
awarded Supporter
Dec
25
awarded Suffrage
Dec
25
awarded Vox Populi
Dec
25
revised The Definitive C++ Book Guide and List
Added note about second edition.
1 2 3 4 5