title: How do I get g++ to compile c++11 code with a move constructor?
body: <p>I can't seem to get g++ to compile c++11 code that uses a move constructor. I keep getting this error:</p>
  
  <pre><code>collin@Serenity:~/Projects/arraylib$ g++ ./t2.cpp
  ./t2.cpp:10:27: error: expected ‘,’ or ‘...’ before ‘&amp;&amp;’ token
  ./t2.cpp:10:38: error: invalid constructor; you probably meant ‘Blarg (const Blarg&amp;)’
  </code></pre>
  
  <p>The program I am writing is quite different from this, but I trimmed it down to the part that seems like it should definitely work, yet still triggers the error:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  class Blarg {
      public:
          Blarg () {};
          Blarg (const Blarg&amp; original) {}; /* Copy constructor */
          Blarg (Blarg&amp;&amp; original) {}; /* Move constructor */
  };
  
  int main(int argc, char *argv[])
  {
      Blarg b;
      return 0;
  }
  </code></pre>
  
  <p>Can anyone tell me what I am doing wrong? Rather, how to fix it?</p>
  
  <p>This is my gcc version:</p>
  
  <pre><code>gcc (Ubuntu/Linaro 4.6.2-14ubuntu2) 4.6.2
  </code></pre>