promises, futures and process::Queue

2015-12-14 Thread James Peach
Hi all, I wrote some test code that was trying to drain a process::Queue. This ended up losing values from the queue, as demonstrated by: TEST(QueueTest, Discard) { Queue q; Future get = q.get(); EXPECT_FALSE(get.isReady()); get.discard(); EXPECT_TRUE(get.hasDiscard()); q.put(42);

Re: `F()` vs `F(void)`

2015-12-14 Thread Alexander Rojas
+1 > On 13 Dec 2015, at 19:46, Michael Park wrote: > > Hello, > > In the C++ world, the *void* parameter is considered to be only there for C > compatibility reasons. > > We do a good job of not using *void *parameters in function declarations, > e.g., *void F();*. On the other hand, we're *no