[cfe-dev] std::tuple

Stephan Schiffels stschiff0815 at googlemail.com
Thu Dec 1 00:19:00 PST 2011


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.

Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111201/40da60ae/attachment.html>


More information about the cfe-dev mailing list