ros2 / demos

Apache License 2.0
491 stars 329 forks source link

Add in support for both the PMR and custom allocator tutorials. #655

Closed clalancette closed 10 months ago

clalancette commented 10 months ago

This is mostly because libc++ 14 (in Ubuntu 22.04) only understands the old version. So we choose the appropriate file based on the compiler in use.

Note that this partially undoes #653 , at least by adding in both versions, and then selecting at compile-time. This should fix our failing Clang builds at https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/

clalancette commented 10 months ago

CI:

clalancette commented 10 months ago

Oh, and clang: