Reading several questions like this one, it turns out that we have a linkage error if we do this way:
In a header file .h
template