C++11/14 compatibility