Skip to content

Conversation

@psyinf
Copy link
Contributor

@psyinf psyinf commented Jun 6, 2024

When build with a recent compiler (gcc 14.1/clang 17.0.1) the build failed due to the dependency expected-lite doesn't provide a make_unexpected when std::expected is included.
I've contacted the author and proposed a fix. He fixed the library and released v0.8.0.

I've taken the freedom to add the new expected-header to the source tree and also adapted a possible oversight (which also doesn't compile with a newer compiler. If the use of ´using ExpectedEntry = nonstd::expected_lite::expected<Entry, std::string>;´ is intended this needs to be fixed to be compatible within the expected-library, i guess.

Additionally I've added some changes to the CMakeLists file to disable building of the sample nodes if no test, nor examples are needed.

A general question: Currently the dependencies are hard-wired, any opinion towards using CPM or plain cmake FetchContent here?

@psyinf
Copy link
Contributor Author

psyinf commented Jun 22, 2024

any news on this?

@facontidavide facontidavide merged commit b8277b7 into BehaviorTree:master Jun 24, 2024
@facontidavide
Copy link
Collaborator

thanks!

Aglargil pushed a commit to Aglargil/BehaviorTree.CPP that referenced this pull request Sep 6, 2024
…ry (BehaviorTree#833)

* >Fixes build with newer clang/gcc

* >Fixes build with newer clang/gcc

* conditional build of sample nodes

* using current head version for testing

* moved to v0.8.0
@vincent-hui
Copy link
Contributor

FYI #926

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.

3 participants