title: use of deleted function error
body: <p>i have had a problem with <code>/usr/include/c++/4.6/ext/new_allocator.h:108:9: error: use of deleted function ‘SMIBQueue::SMIBQueue(const SMIBQueue&amp;)’</code> with C++ eclipse.</p>
  
  <p>and i am using <code>-std=c++0x</code> flag to use C++11 </p>
  
  <p>though i found the point that the error occur at, i don't know why.</p>
  
  <p>this is header file</p>
  
  <pre><code>class SMIBQueue{
  private:
      std::queue&lt;unsigned char&gt; exceptionQueue;
      std::queue&lt;UserRequest*&gt; userInputQueue;
      std::queue&lt;LpRsp*&gt; lpRspQueue;
      std::queue&lt;LpCmd*&gt; lpCmdQueue;
  
      std::mutex EvtQueueLock;
      std::mutex UserQueueLock;
      std::mutex LpRspQueueLock;
      std::mutex LpCmdQueueLock;
  public:
  
      int evtGetItem(unsigned char &amp;item);
      int evtPutItem(unsigned char item);
      int userGetItem(UserRequest*&amp; item);
      int userPutItem(UserRequest* item);
      int lpGetItem(LpCmd*&amp; queue_buf);
      int lpPutItem(LpCmd *queue_buf);
      int lpRspGetItem(LpRsp*&amp; queue_buf);
      int lpRspPutItem(LpRsp *queue_buf);
      int lpRemoveQueuedInfo();
      int lpRspRemoveQueuedInfo();
  };
  
  class SMIBQueues{
  public:
      static std::vector&lt;SMIBQueue&gt; smibQueues;
      static void queueInit(int numOfClient);
      static int evtGetItem(int sasAddr, unsigned char &amp;item);
      static int evtPutItem(int sasAddr, unsigned char item);
      static int userGetItem(int sasAddr, UserRequest*&amp; item);
      static int userPutItem(int sasAddr, UserRequest* item);
      static int lpGetItem(int sasAddr, LpCmd*&amp; queue_buf);
      static int lpPutItem(int sasAddr, LpCmd *queue_buf);
      static int lpRspGetItem(int sasAddr, LpRsp*&amp; queue_buf);
      static int lpRspPutItem(int sasAddr, LpRsp *queue_buf);
      static int lpRemoveQueuedInfo(int sasAddr);
      static int lpRspRemoveQueuedInfo(int sasAddr);
  };
  </code></pre>
  
  <p>and this is the function that the error occur at</p>
  
  <pre><code>std::vector&lt;SMIBQueue&gt; SMIBQueues::smibQueues;
  
  void SMIBQueues::queueInit(int numOfClient){
      for(int i = 0 ; i &lt; numOfClient; i++){
          SMIBQueue s;
          smibQueues.push_back(s);
      }
  }
  </code></pre>
  
  <p>in this function, push_pack method makes the error.
  when i eliminate the part, there is no problem while compiling.</p>