Вот простой пример:
#include <iostream>
class A
{
static constexpr int a[]={0,1,2,3,4};
public:
static int Get(size_t ind) { return a[ind]; }
};
int main(int argc, char** argv)
{
std::cout<<A::Get(argc)<<std::endl;
return 0;
}
function A::Get(unsigned long): error: undefined reference to 'A::a'
#include <iostream>
constexpr int a[]={0,1,2,3,4};
int Get(size_t ind) { return a[ind]; }
int main(int argc, char** argv)
{
std::cout<<Get(argc)<<std::endl;
return 0;
}