Function composition in C++11
There is a lot of code in this post, it will probably not compile “as is” because of missing headers or compiler’s incompatibilities. Nevertheless, we made available through our open source initiative the full working library on github. It has been tested on Clang 3.1, gcc 4.6.1 and MSVC 11 on FreeBSD, Linux and Windows.