title: How can I compile C++11 code with Orwell Dev-C++?
body: <p>Trying to compile the following code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;memory&gt;
  
  struct Foo {
      Foo() { std::cout &lt;&lt; "Foo::Foo\n"; }
      ~Foo() { std::cout &lt;&lt; "Foo::~Foo\n"; }
      void bar() { std::cout &lt;&lt; "Foo::bar\n"; }
  };
  
  void f(const Foo &amp;foo)
  {
      std::cout &lt;&lt; "f(const Foo&amp;)\n";
  }
  
  int main()
  {
      std::unique_ptr&lt;Foo&gt; p1(new Foo);  // p1 owns Foo
      if (p1) p1-&gt;bar();
  
      {
          std::unique_ptr&lt;Foo&gt; p2(std::move(p1));  // now p2 owns Foo
          f(*p2);
  
          p1 = std::move(p2);  // ownership returns to p1
          std::cout &lt;&lt; "destroying p2...\n";
      }
  
      if (p1) p1-&gt;bar();
  
      // Foo instance is destroyed when p1 goes out of scope
  }
  </code></pre>
  
  <p>with Orwell Dev-c++ 5.3.0.3 yields the following error:</p>
  
  <blockquote>
    <p>'unique_ptr' is not a member of 'std'.</p>
  </blockquote>
  
  <p>How can I handle this?</p>