<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span><div>Hi, all,</div><div><br></div><div>Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017.</div><div><br></div><div>#include <tuple></div><div><br></div><div>using namespace std;</div><div><br></div><div>int main()</div><div>{</div><div>    tuple t{ 1, 3.14 };</div><div>}</div><div><br></div><div>The error message are as follows:</div><div><br></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';">1>------ Build started: Project: cpptest, Configuration: Debug x64 ------<br>1>main.cpp(19,8): error : no viable constructor or deduction guide for deduction of template arguments of 'tuple'<br>1>        tuple t{ 1, 3.14 };<br>1>              ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility(88,8):  note: candidate function template not viable: requires 0 arguments, but 2 were provided<br>1>        class tuple;<br>1>              ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility(88,8):  note: candidate function template not viable: requires 1 argument, but 2 were provided<br>1>1 error generated.<br>1>Done building project "cpptest.vcxproj" -- FAILED.<br>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</span></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';"><br></span></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';">I have applied for an account for submitting bugs of clang, but no response from the administrators. So I have to send mail to this forum.</span></div></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>312988336@qq.com</div></div></span></div>
</body></html>