Closed pauljurczak closed 1 year ago
Necroing a bit but this is a deprecation
https://en.cppreference.com/w/cpp/memory/allocator Specifically
rebind (deprecated in C++17)(removed in C++20)
There are no good workarounds here given these are public headers. If you want to mix and match ROS Melodic or Noetic and ++20 - you'll need to split out library targets and give them their own C++ standards rules.
If I am not mistaken this should be fixed by an ongoing PR (https://github.com/ros/roscpp_core/pull/124) that was filed 6 months ago...
I'm using ROS Melodic on Ubuntu 18.04.5 with gcc-10.1. This test program compiles and runs fine with
-std=gnu++17
option, but fails to compile with-std=gnu++2a
:Here is the error message: