template definitions cannot nest
Nested template declarations are not allowed. This error can be caused by improperly matched curly braces ({}).