Why does Visual Studio 2010 throw this error with Boost 1.42.0?

Posted by ra170 on Stack Overflow See other posts from Stack Overflow or by ra170
Published on 2010-04-22T14:27:46Z Indexed on 2010/04/22 14:33 UTC
Read the original article Hit count: 482

Filed under:
|
|

I'm trying to recompile application, that compiles fine with warning level 4 in visual studio 2005 and visual studio 2008. Since the errors (look below) are coming from std:tr1, I'm thinking there's some conflict, but not sure how to fix. My first thought was to remove all references to boost, such as but then I get an error that it can't find format method. So here's one of the errors: (not sure what it means) Any ideas, suggestions, solutions? Thanks!

> c:\program files (x86)\microsoft
> visual studio
> 10.0\vc\include\type_traits(197): error C2752:
> 'std::tr1::_Remove_reference<_Ty>' :
> more than one partial specialization
> matches the template argument list 1> 
> with 1>          [ 1>             
> _Ty=bool (__cdecl &)(const BlahBlah &) 1>          ] 1>          c:\program
> files (x86)\microsoft visual studio
> 10.0\vc\include\xtr1common(356): could be
> 'std::tr1::_Remove_reference<_Ty&&>'
> 1>          c:\program files
> (x86)\microsoft visual studio
> 10.0\vc\include\xtr1common(350): or       'std::tr1::_Remove_reference<_Ty&>' 1>
> c:\program files (x86)\microsoft
> visual studio
> 10.0\vc\include\type_traits(962) : see reference to class template
> instantiation
> 'std::tr1::remove_reference<_Ty>'
> being compiled 1>          with

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about boost