replace boost foreach with c++11