Apr
9
comment Why does epoll_wait only provide huge 1ms timeout?
Just learned about timerfd from your answer. Nice!
Apr
2
awarded Popular Question
Feb
13
awarded Famous Question
Dec
7
awarded Nice Question
Oct
16
awarded Good Question
Sep
26
awarded Popular Question
Sep
17
awarded Popular Question
Jul
19
awarded Yearling
Jul
2
awarded Curious
Jul
2
awarded Curious
Jun
24
comment Random points inside a Polygon
@gabriel_littman. I believe you are correct. In the graphic for the equation there is a missing R(pi), which is present in the text... i.e. rotation by 180 degrees. I think that rotation matrix is [-1, 0; 0, -1] which is to say that we take the negative of its operand.
Jun
6
awarded Necromancer
Feb
7
awarded Nice Answer
Nov
15
awarded Notable Question
Oct
28
awarded Supporter
Oct
17
awarded Famous Question
Oct
3
comment Omit return type in C++11
@LokiAstari I agree with your comment in the context of the OP but what if a function returns the result of std::bind(...)?
Sep
25
comment How can I copy one map into another using std::copy?
@Billy: Your answer is clearly the correct answer for the OP, but the answer to why would be "so I can use copy_if", and filter one map during the copy to another.
Sep
19
awarded Necromancer
Sep
14
comment Can I use a binary literal in C or C++?
Here's a tutorial on user-defined literals in c++11: akrzemi1.wordpress.com/2012/10/23/user-defined-literals-part-ii. Evidently c++1y (a.k.a. c++14) will include binary literals in the standard.
1 2 3 4 5