Static const char address return
<p>I have a project,in which i need to get the value of the address with gettip (ASCII code for 177) but I always get the same error:
'void*' is not a pointer-to-object type</p>

<p>I can modify just the main,the class was given like this.</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

class A{

static unsigned char name;

public:
 void* gettip();
};

unsigned char A::name=(char)177; //Ascii conversion of 177

void* A::gettip() {return &amp;name;};

int main()
{
    A b;
    cout&lt;&lt;*b.gettip(); //here is the error
    return 0;
}
</code></pre>

<p>Thank you!</p>
