title: define const list
body: <p>I do something like this and get errors from compiler      </p>
  
  <pre><code>using namespace std;
  
  ///define a method for list
  void method(const list&lt;int&gt;&amp;lst) //ERROR here
  {
    //do something
  }
  </code></pre>
  
  <p>I have no idea why</p>