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

compiler rejects this code on OS X 10.10 with -std=c++14 option

$
0
0
//  test.cpp
#include <tuple>

int main()
{
auto t = std::make_tuple(1, 1.2);
return 0;
}

 

icpc -v

icpc version 15.0.3 (gcc version 5.1.0 compatibility)

OS X 10.10 - If using " icpc -std=c++11 test.cpp ", it's OK. But if using " icpc -std=c++14 test.cpp ", it prompts

error: namespace "std" has no member "make_tuple"

  auto t = std::make_tuple(1, 1.2);

 

I tested this code on a linux machine, and both cases passed. So what could cause this problem on OS X?


Viewing all articles
Browse latest Browse all 1616

Trending Articles



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