[cfe-dev] std::tuple
Howard Hinnant
hhinnant at apple.com
Thu Dec 1 06:57:49 PST 2011
On Dec 1, 2011, at 3:19 AM, Stephan Schiffels wrote:
> Hi, I use the Apple LLVM 3.0 compiler and the libc++ library, including C++11 features.
>
> Several C++11 features work fine (such as <unordered_map> or <unique_ptr>), but I have problems with <tuple>. I tried to compile this code:
>
> #include <tuple>
>
> int main (int argc, const char * argv[]) {
>
> std::tuple<int, int> a;
>
> return 0;
> }
>
> which gives an error " no member named 'tuple' in namespace 'std' ". What is really weird is the fact that it DOES know about the helper classes "std::tuple_size" and "std::tuple_element".
>
> any help appreciated.
<tuple> currently requires -std=c++0x (and -stdlib=libc++).
Howard
More information about the cfe-dev
mailing list