プロジェクトを Visual Studio 2003 から 2005 に変換したばかりで、ほとんどは正常に「変換」されましたが、次の行から一連の STL エラーが発生します。
void SomeFn( std::vector<CSomeObject*>::iterator it,
std::vector<CSomeObject*>::iterator itBegin = NULL,
std::vector<CSomeObject*>::iterator itEnd = NULL );
Visual Studio のエラーは次のとおりです。
c:\<path>\Headerfile.h(20) : error C2440: 'default argument' : cannot convert from 'int' to 'std::_Vector_iterator<_Ty,_Alloc>'
with
[
_Ty=CObject *,
_Alloc=std::allocator<CObject *>
]
No constructor could take the source type, or constructor overload resolution was ambiguous
そのコードに問題は見られず、VS 2003 では完全に機能しました。何かアイデアはありますか?