pageldev / libOpenDRIVE

Small, lightweight C++ library for handling OpenDRIVE files
Apache License 2.0
368 stars 134 forks source link

fix: include missing <functional> header #68

Closed hsynydn closed 1 year ago

hsynydn commented 1 year ago

I was getting compilation error, due to the missing header which says

error: ‘plus’ is not a member of ‘std’ error: ‘minus’ is not a member of ‘std’

These function objects are defined in header \<functional> since C++-14. So I included this header.

This PR is also related with issue #50

pageldev commented 1 year ago

Thanks for catching this! It didn't pop up compiling on Ubuntu 20 or MacOS