fixed samples for c++ 4.8