Like J-S, I also get this compile error from osgManipulator. This is from
CVS about 12 hours old using VS8. The code appears to be trying to
initialize an iterator with an int.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
303 859 9466


> -----------------
> Project "Core osgManipulator":
> - Dragger.cpp: I get this error:
> 
> 1>..\..\src\osgManipulator\Dragger.cpp(34) : error C2664:
> 'std::_Vector_iterator<_Ty,_Alloc>::_Vector_iterator(const
> std::_Vector_iterator<_Ty,_Alloc> &)' : cannot convert 
> parameter 1 from 'int'
> to 'const std::_Vector_iterator<_Ty,_Alloc> &'
> 1>        with
> 1>        [
> 1>            _Ty=osgUtil::Hit,
> 1>            _Alloc=std::allocator<osgUtil::Hit>
> 1>        ]
> 1>        Reason: cannot convert from 'int' to 'const
> std::_Vector_iterator<_Ty,_Alloc>'
> 1>        with
> 1>        [
> 1>            _Ty=osgUtil::Hit,
> 1>            _Alloc=std::allocator<osgUtil::Hit>
> 1>        ]
> 1>        No constructor could take the source type, or constructor 
> 1> overload
> resolution was ambiguous
> 
> At Dragger.cpp line 33, if I remove the 0 from the hitIter 
> constructor call, it compiles. Dunno if this is the right 
> fix, but I think an iterator is initialized to zero anyways...

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to