Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

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

$
0
0

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


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>