pre-c++11 compatiblity