A client of mine wants me to make a high performance, reliable server which receives datastreams via sockets. He expects it to be in c++
It’s been a while that i was doing c++ fulltime so I’ve been reading up a bit. Asio seems to be a good bet for networking in c++, and c++11 seems like a great new version of c++ with a lot of new features.
My question: is it possible to use both reliably? Does it make sense? Should I avoid certain c++11 features like lambdas?
I’d base “C++11 features to avoid” primarily on your planned target compiler(s). I don’t see any reason to avoid lambdas — all the major compilers already support them, and the they provide a substantial improvement in readability.
On the other hand, depending on the compiler(s) you care about, you might want/need to avoid things like variadic templates and/or braced initializer lists.