Calculate the size of the template at compile time
fix