Issues with assignment operator and c-strings in C++
<p>Im making a class that is supposed to be able to assign c-strings the same way the string class i able to:</p>

<pre><code>string a = "My string";
</code></pre>

<p>The issue I'm having is that it seams like it is not the <code>operator=( char operand )</code> that is used for this purpose. So my question is this: What is used instead?</p>

<p>What I have:</p>

<pre><code>class exstring
{
    ...

    public:
    exstring&amp; operator=( char* );

    ...
};

...

int main()
{
    exstring test = "test";
}
</code></pre>

<p>Which gives:</p>

<pre><code>main.cpp:9:22: error: conversion from ‘const char [19]’ to non-scalar type ‘std::exstring’ requested
</code></pre>

<p>Any ideas?</p>
