[cfe-dev] std::tuple

Howard Hinnant hhinnant at apple.com
Wed Nov 30 14:07:55 PST 2011


On Nov 30, 2011, at 5:04 PM, Stephan Schiffels wrote:

> Hi everyone,
> 
> I can't get the new C++11 library datatype std::tuple to work.
> 
> Here is the code which won't compile.
> 
> 
> #include <tuple>
> 
> int main (int argc, const char * argv[]) {
> 
>    std::tuple<int, int> a;
>    return 0;
> }
> 
> Other C++11 features work fine. Is <tuple> still under construction?

<tuple> currently requires -std=c++0x (and -stdlib=libc++).

Howard




More information about the cfe-dev mailing list