News for hackers. Stuff that matters.
Re:We have C++14 by kazinator on Monday August 18, 2014 @07:09PM (#8195195)
It seems like in the second `foo`, the types of `a` and `b` are not hinged together. So to do it with the template syntax you actually need:

    template<typename T, typename U>
    void foo(T a, U b)
:)
Re:We have C++14 by dllthomas on Monday August 18, 2014 @08:53PM (#8195528)
I intended the two to share a type. My point was that you cannot express that constraint with only auto.