gwaldron / osgearth

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

jobs::dispatch - won't build on C++20 #2560

Closed gwaldron closed 2 months ago

gwaldron commented 2 months ago

Discussed in https://github.com/gwaldron/osgearth/discussions/2559

Originally posted by **LoiX07** June 16, 2024 Hi all, I did not manage to compile osgEarth on linux (Arch). I got this error : ` osgearth/src/osgEarth/ElevationPool.cpp:1126:26: erreur: pas de fonction correspondant à l'appel « dispatch(osgEarth::AsyncElevationSampler::getSample(const osgEarth::GeoPoint&, const osgEarth::Distance&)::&, jobs::context&) » 1126 | return jobs::dispatch(task, c); | ~~~~~~~~~~~~~~^~~~~~~~~ ` and also this one : `osgearth/src/osgEarth/weejobs.h:227:15: erreur: pas de type nommé « type » dans « struct std::invoke_result(jobs::cancelable&)> » 227 | using result_of_t = typename std::invoke_result::type; ` Do you have any idea of what can cause this ? Also, I'm noob with C++ so it may be a very simple issue ! Thanks in advance !