Use good old C++ template instead of auto parameter which needs C++1y.