Dining philosophers problem using C++11