As suggested by daniel-j-h tasks are now taken by universal reference and forwarded with std::forward. Also enqueue takes a variadic argument list and binds the arguments to the task.
A simple C++11 Thread Pool implementation.
The "legacy" directory contains a version that does not use std::future but a custom Result type that has essentially the same functionalty.