fix for C++03 builds