Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error: error: 'as_const' is not a member of 'std' #293

Open
TCOR3987 opened this issue Jun 2, 2022 · 4 comments
Open

build error: error: 'as_const' is not a member of 'std' #293

TCOR3987 opened this issue Jun 2, 2022 · 4 comments

Comments

@TCOR3987
Copy link

TCOR3987 commented Jun 2, 2022

Getting this error when building godot with godex.

godotECS/godex/modules/godot/nodes/ecs_world.cpp:744:65: error: 'as_const' is not a member of 'std'; did you mean 'is_const'?
744 | const Storage *storage = std::as_const(world)->get_storage();

@TCOR3987 TCOR3987 changed the title compiling error. build error. Jun 2, 2022
@miroklarin
Copy link

@TCOR3987 try to put this on top of ecs_world.cpp
#include <utility>

@TCOR3987
Copy link
Author

Thanks that worked

@AndreaCatania AndreaCatania reopened this Jun 13, 2022
@AndreaCatania AndreaCatania changed the title build error. build error: error: 'as_const' is not a member of 'std' Jun 13, 2022
@AndreaCatania
Copy link
Member

@miroklarin Thx for looking into this!
@TCOR3987 What's your operating system?

Feel free to submit a PR to fix this.

@TCOR3987
Copy link
Author

Fedora 36

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

No branches or pull requests

3 participants