What is the non-deprecated way to initialise a char * in C++?
<p>When I initialise a local <code>char *</code> variable like so in C++:</p>

<pre><code>char * pattern = "oggS";
</code></pre>

<p>the compiler warns me:</p>

<pre><code>Foo.cpp:34: warning: deprecated conversion from string constant to ‘char*’
</code></pre>

<p>What is the non-deprecated way to do this in C++?</p>

<p>In case it matters, here's how I'm invoking the compiler (from <a href="http://eclipse.org/" rel="nofollow">Eclipse</a>):</p>

<pre><code>g++-4.5 -O0 -g3 -Wall -std=c++0x -c -fmessage-length=0 -MMD -MP -MF"Foo.d" -MT"Foo.d" -o"Foo.o" "Foo.cpp"
</code></pre>
