I've got some older code which uses std::uniform_int and std::variate_generator. On one machine I use GCC 4.8.5 and it works pretty fine. On my newer workstation I have GCC 7.2.1 installed and it is not possible to compile the code.
The error message is, that uniform_int and variate_generator are no members of std. I found some information that in newer C++ standards they are not supported anymore and for uniform_int uniform_int_distribution should be used.
Is there any possibility to extend the code that it will work on both machine. For example to use some "adapter-code" to rebuild the interface of uniform_int_distribution to uniform_int?
Aucun commentaire:
Enregistrer un commentaire