Initialize a static const empty array
<p>Is it possible to initialize a static const empty array, please see below code,</p>

<pre><code>//CFoo.h
class CFoo
{
 public:
   CFoo();
   ~CFoo();

 public:
    static const int arr[];

};

//CFoo.cpp
const int arr[] = {0,1,2};

CFoo::CFoo(){}
CFoo::~CFoo(){}
</code></pre>

<p>EDIT:</p>

<p>It seems the code is valid, and for followup question, why I can't sizeof the static const array, like,</p>

<pre><code>sizeof( CFoo::arr );
</code></pre>

<p>Is there any way I can sizeof CFoo::arr?</p>

<p>Thanks.</p>
