Hi, I use the Apple LLVM 3.0 compiler and the libc++ library, including C++11 features.<div><br></div><div>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:</div>
<div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #7a482f">#include <span style="color: #d62b24"><tuple></span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo"><span style="color: #bf2e9d">int</span> main (<span style="color: #bf2e9d">int</span> argc, <span style="color: #bf2e9d">const</span> <span style="color: #bf2e9d">char</span> * argv[]) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo"> std::tuple<<span style="color: #bf2e9d">int</span>, <span style="color: #bf2e9d">int</span>> a;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; min-height: 15.0px"> </p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo"> <span style="color: #bf2e9d">return</span> <span style="color: #2832cf">0</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo">}</p></div><div><br></div><div>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".</div>
<div><br></div><div>any help appreciated.</div><div><br></div><div>Stephan</div><div><br></div>