title: Advantage of using trailing return type in C++11 functions
body: <p>What is the advantage of specifying a trailing return type in C++11, as opposed to a normal return type? Look at <code>foo1</code> vs <code>foo2</code> here:</p>
  
  <pre><code>int foo1() {
      return 1;    
  }
  
  auto foo2() -&gt; int {
      return 1;    
  }
  
  int main() {
      foo1();
      foo2();
  }
  </code></pre>