title: function return type is vector in c++
body: <p>i want vector as return type of function in my code like,</p>
  
  <pre><code>class SocketTransportClient{
      void sendData(RMLInfoset *info){
          vector&lt;unsigned long&gt;::iterator blockIterator;
          vector&lt;unsigned long&gt; vectBlock=info-&gt;getRML(); // error :  error C2440: 'initializing' : cannot convert from 'std::vector&lt;_Ty&gt;' to 'std::vector&lt;_Ty&gt;'
      }
  }
  
  class RMLInfoset  {
      vector&lt;unsigned int&gt; RMLInfoset::getRML(){
          return  vectDataBlock;
      }
  }
  </code></pre>
  
  <p>but it show an error  'cannot convert from 'std::vector&lt;_Ty>' to 'std::vector&lt;_Ty>' '
  so please any one help me,
  Thanks.</p>