Once problem solved in C++11