Clang seems to be more picky than gcc about some C++ template syntax