Leave the primary template undefined and only partially-specialize for the types you want to admit:
template <typename> class CTest; // undefined
#include <vector>
template <typename T, typename Alloc>
class CTest<std::vector<T, Alloc>>
{
// ... your template here ...
};