<div dir="ltr"><div>I am getting the following error when compiling clang with Visual Studio 9 2008 (cmake -G "Visual Studio 9 2008"). My git checkout is at [commit cea06d26b8f3a2599bba79f7e072b7550de949a7, git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@158869">https://llvm.org/svn/llvm-project/cfe/trunk@158869</a>]. Any one else tried seeing this error?</div>
<div><br></div><div>C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xutility(315) : error C2664: 'bool clang::BeforeThanCompare<clang::RawComment>::operator ()(const clang::RawComment &,const clang::SourceRange &)' : cannot convert parameter 1 from 'const clang::SourceRange' to 'const clang::RawComment &'</div>
<div> Reason: cannot convert from 'const clang::SourceRange' to 'const clang::RawComment'</div><div> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</div>
<div> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\algorithm(2298) : see reference to function template instantiation 'bool std::_Debug_lt_pred<_Pr,T,_Ty>(_Pr,const _Ty1 &,const _Ty2 &,const wchar_t *,unsigned int)' being compiled</div>
<div> with</div><div> [</div><div> _Pr=clang::BeforeThanCompare<clang::RawComment>,</div><div> T=clang::RawComment,</div><div> _Ty=clang::SourceRange,</div><div> _Ty1=clang::RawComment,</div>
<div> _Ty2=clang::SourceRange</div><div> ]</div><div> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\algorithm(2312) : see reference to function template instantiation '_FwdIt std::_Lower_bound<const clang::RawComment*,_Ty,std::iterator_traits<_Iter>::difference_type,_Pr>(_FwdIt,_FwdIt,const _Ty &,_Pr,_Diff *)' being compiled</div>
<div> with</div><div> [</div><div> _FwdIt=const clang::RawComment *,</div><div> _Ty=clang::SourceRange,</div><div> _Iter=const clang::RawComment *,</div><div> _Pr=clang::BeforeThanCompare<clang::RawComment>,</div>
<div> _Diff=std::iterator_traits<const clang::RawComment *>::difference_type</div><div> ]</div><div> ..\..\..\..\..\tools\clang\lib\AST\ASTContext.cpp(85) : see reference to function template instantiation '_FwdIt std::lower_bound<const clang::RawComment*,clang::SourceRange,clang::BeforeThanCompare<clang::RawComment>>(_FwdIt,_FwdIt,const _Ty &,_Pr)' being compiled</div>
<div> with</div><div> [</div><div> _FwdIt=const clang::RawComment *,</div><div> _Ty=clang::SourceRange,</div><div> _Pr=clang::BeforeThanCompare<clang::RawComment></div>
<div> ]</div></div>