<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I am trying to build VTK for x64, something I've done before with MSVC 2010, but not with MSVC 2012.  I get this error compiling WTFString.cpp:</p>
<p><br>
</p>
<p>        cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480<br>
0 -wd4819 -wd4996 -O2 -MD -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -DBUILDING_QT__=1<br>
 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -D_HAS_TR1=0 -DBUILDING_JavaScriptCore -DBUIL<br>
DING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE<br>
 -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\include\Q<br>
tCore" -I"..\..\..\..\..\include" -I"." -I"..\..\Source" -I"..\ThirdParty" -I"as<br>
sembler" -I"bytecode" -I"bytecompiler" -I"heap" -I"dfg" -I"debugger" -I"interpre<br>
ter" -I"jit" -I"parser" -I"profiler" -I"runtime" -I"wtf" -I"wtf\gobject" -I"d:\Q<br>
t\4.8.6\src\3rdparty\webkit\Source\JavaScriptCore\wtf\symbian" -I"wtf\unicode" -<br>
I"yarr" -I"API" -I"ForwardingHeaders" -I"generated" -I"os-win32" -I"..\..\Source<br>
" -I"..\..\include" -I"\include\QtWebKit" -I"\include" -I"..\..\..\..\..\include<br>
\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\win32-msvc2012"<br>
-Fotmp\obj\release_shared\ @C:\Users\mbog002\AppData\Local\Temp\WTFString.obj.29<br>
08.4805.jom<br>
WTFString.cpp<br>
.\wtf/HashSet.h(180) : error C2664: 'std::pair<_Ty1,_Ty2>::pair(const std::pair<<br>
_Ty1,_Ty2> &)' : cannot convert parameter 1 from 'std::pair<_Ty1,_Ty2>' to 'const std::pair<_Ty1,_Ty2> &'</p>
<p>...</p>
<p><br>
</p>
<p>(there are many more lines, but probably not adding more useful info).</p>
<p><br>
</p>
<p>The error seems to be from Hashset.h, about here:</p>
<p><br>
</p>
<p>    template<typename T, typename U, typename V><br>
    inline pair<typename HashSet<T, U, V>::iterator, bool> HashSet<T, U, V>::add(const ValueType& value)<br>
    {<br>
        return m_impl.add(value);<br>
    }<br>
</p>
<p><br>
</p>
<p>I'm afraid this is way beyond my level  of C++ expertise - I don't use templates.  Is this error the result of a change between MSVC 2010 and 2012?  How can I avoid this error?</p>
<p><br>
</p>
<p>Thanks</p>
<p>Gib<br>
</p>
</body>
</html>