Let's say we have the following class:
class A {
static SomeLongType b;
};
Now we have to initialize it in the appropriate cpp file. I can think of the following ways:
SomeLongType A::b{}; // repetition of SomeLongType
decltype(A::b) A::b{}; // A::b written two times
Both seem to be kind of cumbersome to me. Is there a better way?