Stack-Machine problem solved in C++11

Here's a solution to Stack-Machine that makes use of new C++11 features, such as lambda functions and range-based for loops. I think it should even work on embedded systems with a couple 16-bit registers that can do basic arithmetic and bitwise operations.