Re: [c++] Multi-threaded proton and C++11

2016-04-05 Thread Alan Conway
On Mon, 2016-04-04 at 09:55 +0200, Mark Banner wrote: > I completely agree Alan. We have recently been doing something very > similar > internally in C++03 and the C++11 primitives are sourly missed. We > have > managed to not use std::function by having a certain number of > hardcoded > events whi

Re: [c++] Multi-threaded proton and C++11

2016-04-04 Thread Mark Banner
I completely agree Alan. We have recently been doing something very similar internally in C++03 and the C++11 primitives are sourly missed. We have managed to not use std::function by having a certain number of hardcoded events which can be sent to a connection engine and using custom promises/futu

[c++] Multi-threaded proton and C++11

2016-04-01 Thread Alan Conway
I am working on a multi-threaded broker example for proton C++ and I am becoming more and more convinced that it doesn't make much sense to try to do this without C++11. There are two classes of issue: API: - inject() needs a way to represent a callback function. Without std::function this is ver