Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7779 Discussions

[Bug report] Tuple unavailable in c++14?

Shenxiu_L_
Beginner
243 Views

I am using Intel compiler 15.0.3 on OSX and facing a problem for using tuple. A simple sample code here:

#include <tuple>

using namespace std;

int main() {
    tuple<int,int,int> T{1, 2, 3};
    return 0;
}

If compile it with

icpc -std=c++11 test.cc

It will just compile fine. But if compile with

icpc -std=c++14 test.cc

It will send out error

test.cc(6): error: identifier "tuple" is undefined

My environment and compiler version is as following:

icpc --version
icpc (ICC) 15.0.3 20150408

uname -a
Darwin MacBook-Pro 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

Is it a bug?

 

Thanks,

Shenxiu

0 Kudos
1 Solution
Kittur_G_Intel
Employee
243 Views

Hi,  
This is fixed in the latest 2016 version of the released product and it works fine. You'll have to download from Intel Registration Center and test it out, thanks.

_Kittur 

View solution in original post

3 Replies
Kittur_G_Intel
Employee
244 Views

Hi,  
This is fixed in the latest 2016 version of the released product and it works fine. You'll have to download from Intel Registration Center and test it out, thanks.

_Kittur 

Shenxiu_L_
Beginner
243 Views

Thanks, Kittur!

Kittur_G_Intel
Employee
243 Views

Thanks Shenxiu, my pleasure.

Reply