title: prohibiting copy constructor with new standard c++11
body: <p>hey guys I was trying to create a simple class with copy constructor prohibiting. </p>
  
  <pre><code>#include &lt;cstdlib&gt;
  
  // 
  class my_stack
  {
  std::size_t last;
  int *data;
  std::size_t max_elem;
  
  public :
  
  int top(void) const;
  void pop(void);
  void push(int);
  int size(void) const;
  bool empty(void) const;
  
  my_stack();
  my_stack(int);
  ~my_stack();
  
  private:
  my_stack(const my_stack&amp;) = delete;
  void operator=(const my_stack&amp;) = delete;
  };
  </code></pre>
  
  <p>but when i compile it warning appeared </p>
  
  <pre><code> defaulted and deleted functions only available with -std=c++0x or -std=gnu++0x [enabled by default]
  </code></pre>
  
  <p>I use g++ compiler. How can I avoid this warning, may be I should use some compiler parameters. </p>