C++ Class template deduction (P0091R0) for function arguments : <p>In C++17 we can do somthing like</p>

<pre><code>std::pair p = {1,3}; // compiler deduces template parameters to pair&lt;int,int&gt;
</code></pre>

<p>From the documentation at <a href="http://en.cppreference.com/w/cpp/language/class_template_deduction" rel="nofollow noreferrer">cppreference</a> I understand that the following will NOT work:</p>

<pre><code>template&lt;class T1, class T2&gt;
void bar(std::pair&lt;T1,T2&gt;)
{}
void foo()
{
   bar({1,3}); // No deduction of pair template arguments
}
</code></pre>

<p>Can anyone confirm this and give some insight, why this won't work? Technically this should work, right? Has there been any discussion to make this work, or is it kind of an oversight?</p>
