Hi osg-users, I'm using latest svn version from osg and I've been experiencing some issue compiling my program because of the RandomRateCounter.h file.
I'm under Windows 7 using VS2008 SP1. In function *inline int RandomRateCounter::numParticlesToCreate(double dt) const* there's an error using std::min, you can see here that it's a known issue : http://heifner.blogspot.com/2008/02/stdmin-and-stdmax.html Replacing : float numNewParticles = std::min(static_cast<float>(dt * getRateRange().get_random()), getRateRange().maximum); by float numNewParticles = std::min*<float>*(static_cast<float>(dt * getRateRange().get_random()), getRateRange().maximum); Resolve the : error C2059: erreur de syntaxe : '::' C:\Program Files (x86)\OpenSceneGraph\include\osgParticle\RandomRateCounter 57 Kind regards, -- Alexandre AMALRIC Ingénieur R&D =================================== PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille http://www.pixxim.fr
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

