You can get a pointer to anything with static storage duration and linkage at compile time:
static const int values[] = {4, 8, 15, 16, 23, 42};
MyClass <const int, values> myClass;
static char magic = '*';
MyClass <char, &magic> myClass2;
Demo
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…