<br><br><div class="gmail_quote">On Sat, May 1, 2010 at 10:02 PM, me22 <span dir="ltr"><<a href="http://me22.ca">me22.ca</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 2 May 2010 00:53, Tom van Dijck <<a href="mailto:llvm@tomvandijck.com">llvm@tomvandijck.com</a>> wrote:<br>
> The problem seems to be a much larger issue with the Visual Studio 2010 C++<br>
> Compiler and not really related to clang/llvm. The following snippet of code<br>
> does NOT compile in 2010..<br>
><br>
> #include <vector><br>
> int main(int argc, char* argv[])<br>
> {<br>
>     std::pair<int, void*> mypair(0, NULL);<br>
>     return 0;<br>
> }<br>
><br>
<br>
</div>That's perfectly fine -- it never #includes <utility>,<br>
so there's no reason for std::pair to be in scope.<br></blockquote><div> </div></div>#include <vector><br>int main(int argc, char* 
argv[])<br>{<br>
    std::pair<int, void*> mypair(0, (void*)NULL);<br>
    return 0;<br>}<br><br>compiles fine though...<br>couple people have 
reported the same issue actually, and apparently this is by design due 
to C++0x:<br><br><a href="https://connect.microsoft.com/VisualStudio/feedback/details/520043/error-converting-from-null-to-a-pointer-type-in-std-pair?wa=wsignin1.0#tabs" target="_blank">https://connect.microsoft.com/VisualStudio/feedback/details/520043/error-converting-from-null-to-a-pointer-type-in-std-pair?wa=wsignin1.0#tabs</a><br>
<br>Tom.<br>