title: How to perform a range-based c++11 for loop on char* argv[]?
body: <p>I would like to try out c++11 range-based for loop on <code>char* argv[]</code> but I am getting errors. By current approach is : </p>
  
  <pre><code>for( char* c : argv )
  {                                                                                               
     printf("param: %s \n", c);                                                                    
  }
  </code></pre>
  
  <p>and in my makefile I have the following line : </p>
  
  <pre><code>g++ -c -g -std=c++11 -O2 file.cc
  </code></pre>