Hello Martin,

unsigned int num_files_per_row = std::max(osg::round(sqrt(std::min(max_videos, static_cast<unsigned int>(files.size())))), 1.0); is the line I have. Try to static cast the result of osg::round to unsigned int. Same goes for the sqrt, which expects float or double.

The VC2010 is a bit more picky than the older versions.
Hello,
I am receiving an error when compiling latest SVN in osgmultiplemovies which
is as follows:


Error   1       error C2668: 'sqrt' : ambiguous call to overloaded function
D:\Coding\OSG\OpenSceneGraph\examples\osgmultiplemovies\osgmultiplemovies.cp
p       654     1       example_osgmultiplemovies

Error   2       error C2780: 'const _Ty &std::max(const _Ty &,const _Ty
&,_Pr)' : expects 3 arguments - 2 provided
D:\Coding\OSG\OpenSceneGraph\examples\osgmultiplemovies\osgmultiplemovies.cp
p       654     1       example_osgmultiplemovies

No idea why, this is with VS2010.

Regards

Martin


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to