title: How do you use C++0x raw strings with GCC 4.5?
body: <p>This page says that GCC 4.5 has C++ raw string literals: <a href="http://gcc.gnu.org/projects/cxx0x.html" rel="nofollow noreferrer">http://gcc.gnu.org/projects/cxx0x.html</a></p>
  <p>But when I try to use the syntax from this page: <a href="http://www2.research.att.com/%7Ebs/C++0xFAQ.html#raw-strings" rel="nofollow noreferrer">http://www2.research.att.com/~bs/C++0xFAQ.html#raw-strings</a></p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  int main()
  {
      string s = R&quot;[\w\\\w]&quot;;
  
  }
  </code></pre>
  <p>I get this error:</p>
  <pre><code>/opt/local/bin/g++-mp-4.5 -std=gnu++0x -O3    rawstr.cc   -o rawstr  
  rawstr.cc:9:19: error: invalid character '\' in raw string delimiter  
  rawstr.cc:9:5: error: stray 'R' in program
  </code></pre>
  <p>What is the right syntax for raw strings?</p>