Error Invalid Use Of Template-id In Declaration Of Primary Template A/B Tests. Our A/B Tests API endpoint is located at /api/experiments and can be used to create, list, and delete Experiments or A/B tests. People often use the. template class generic_cache. at the last line I get an error that error: invalid use of incomplete type 'struct generic. only a forward declaration line 1. C++