我试图用Visual Studio 2010(C++)编译QtScriptGenerator(gitorious)并遇到编译错误.在搜索解决方案时,由于VS2010实现STL和/或c ++ 0x一致性更改的变化,我偶尔会看到自VS2008以来引入的编译破坏的引用.
任何想法下面发生了什么,或者我如何解决它?如果有问题的代码似乎是QtScriptGenerator,我想我会更容易修复它..但在我看来,违规代码可能在VS2010的STL实现中,我可能需要创建一个变通方法?
PS.我对模板和STL非常不熟悉.我有嵌入式和控制台项目的背景,这些项目直到最近才被避免,以减少内存消耗和交叉编译器风险.
编辑 - 看起来可能是Visual Studio的std :: copy实现发生了变化.
C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility(275) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'rpp::pp_output_iterator<_Container>' (or there is no acceptable conversion)
with
[
_Container=std::string
]
c:\qt\qtscriptgenerator\generator\parser\rpp\pp-iterator.h(75): could be 'rpp::pp_output_iterator<_Container> &rpp::pp_output_iterator<_Container>::operator =(const char &)'
with
[
_Container=std::string
]
while trying to match the argument list '(rpp::pp_output_iterator<_Container>, rpp::pp_output_iterator<_Container>)'
with
[
_Container=std::string
]
C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility(2176) : …Run Code Online (Sandbox Code Playgroud)