Fixed the missing template keyword error.

GNU GCC requires template keyword for line 1045 .