Add generalized POD sample on C++11