Skip to content

Updated for compilation with multiple g++ and C++20 while resolving e…#65

Open
dt1729 wants to merge 1 commit intoSvalorzen:masterfrom
dt1729:master
Open

Updated for compilation with multiple g++ and C++20 while resolving e…#65
dt1729 wants to merge 1 commit intoSvalorzen:masterfrom
dt1729:master

Conversation

@dt1729
Copy link
Copy Markdown

@dt1729 dt1729 commented May 15, 2023

Updated for compilation with multiple g++ and C++20 while resolving error in MARMaxPolicy.cpp for ranges_ vector

elementary edits for compilation on ubuntu 20.04 with multiple g++ installations and 9.4.0 set as default, this causes an error in MARMaxPolicy.cpp for ranges_ vector where iterating using (auto r : ranges_) is not feasible for some reason.

@Svalorzen
Copy link
Copy Markdown
Owner

Hey, sorry for the late reply.

I don't really see why this change makes sense for the project. If you have multiple g++ installed, there's no need to force g++-10 as the compiler (which might not even be installed if one has a newer version). Instead, you can generally pass such values as environmental variables to cmake.

As for the for loop change, the culprit is again a compiler that is too old, so I don't think it's worth changing (especially now that some time has passed).

@dt1729
Copy link
Copy Markdown
Author

dt1729 commented Mar 18, 2025

I believe at the time I was working on my primary ROS development machine. That particular compiler worked for most of my projects so I had to make it work for this library. Forced change for this library and definitely not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants