[cfe-users] Bug report: Clang 5.0 (SVN r298093) cannot deduct class template arguments of tuple.

2017-03-29 Thread 312988...@qq.com via cfe-users
Hi, all, Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017. #include using namespace std; int main() { tuple t{ 1, 3.14 }; } The error message are as follows: 1>-- Build started: Project: cpptest, Configuration: Debug x64 -- 1>main.cpp(19,8): error : no

Re: [cfe-users] Bug report: Clang 5.0 (SVN r298093) cannot deduct class template arguments of tuple.

2017-03-30 Thread 312988...@qq.com via cfe-users
parameters for constructors is a C++17 feature. You need to pass the -std=c++1z flag to the compiler. On Thu, Mar 30, 2017 at 3:48 AM, 312988...@qq.com via cfe-users wrote: > Hi, all, > > Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017. > > #include >

[cfe-users] Bug report: Clang 5.0 (SVN r298093) cannot deduct class template arguments of tuple.

2017-04-03 Thread 312988...@qq.com via cfe-users
Hi, all, Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017. #include using namespace std; int main() { tuple t{ 1, 3.14 }; } The error message are as follows: 1>-- Build started: Project: cpptest, Configuration: Debug x64 -- 1>main.cpp(19,8): error : no