Mixing class and typename. Also, prefer ResourceType (and e.g. TypeName) over RESOURCE. If there's a RESOURCE macro defined somewhere, you'll get strange compilation errors.