.(dot) access to static method
<p>Following is a popular code:</p>

<pre><code>class A
{
public:
    static const string TYPE = "AEvent";
    const string&amp; getType() { return TYPE; }
};
</code></pre>

<p>Above code could be use like this:</p>

<pre><code>if (aInstance.getType() == A::TYPE)
{ 
    ...
}
</code></pre>

<p>It's fine. But it's not intuitiveness. Did not? Look at the next code:</p>

<pre><code>class A
{
public:
    static const string&amp; getType() 
    {
        static const string TYPE = "AEvent";
        return TYPE;
    }
}
//Usage
if (aInstance.getType() == A::getType())
    ....
</code></pre>

<p>Of course, getType is static method but it's possible to access dot operator and It's more intuitively see to me. </p>

<p>How do you think about?</p>
