a block buffer with c++ 11