gwaldron / osgearth

3D Maps for OpenSceneGraph / C++14
https://www.pelicanmapping.com/home-1/opensource
Other
1.47k stars 772 forks source link

Callbacks: Fixed remove() MSVC 2022 compilation issue. Incremented OSGEARTH_SOVERSION. #2506

Closed emminizer closed 4 months ago

emminizer commented 4 months ago

osgEarth::Callback::remove() now uses std::vector::erase(iterator) instead of trying to erase() the pair data element. MSVC issued compile errors when trying to call remove() before this.

OSGEARTH_SOVERSION incremented due to https://github.com/gwaldron/osgearth/commit/277332af from last week. Having the version update permits more code end user to compile cleanly with ifdefs in code.

gwaldron commented 4 months ago

thanks Dan.