Re-declaring a function in C++ class
<pre><code>class arbit
    {
        int var;
        public:

        int method1();
        int method1() const;

    };
</code></pre>

<p>Why does g++ does not give warning while declaring the same function twice here ?</p>
