[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.

me22 me22.ca at gmail.com
Sat May 1 22:02:58 PDT 2010


On 2 May 2010 00:53, Tom van Dijck <llvm at tomvandijck.com> wrote:
> The problem seems to be a much larger issue with the Visual Studio 2010 C++
> Compiler and not really related to clang/llvm. The following snippet of code
> does NOT compile in 2010..
>
> #include <vector>
> int main(int argc, char* argv[])
> {
>     std::pair<int, void*> mypair(0, NULL);
>     return 0;
> }
>

That's perfectly fine -- it never #includes <utility>,
so there's no reason for std::pair to be in scope.




More information about the llvm-dev mailing list