[go: up one dir, main page]

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

Feature request: Make 'entt::null' available in <entt/entity/fwd.hpp> #1170

Closed
kraybit opened this issue Aug 25, 2024 · 1 comment
Closed
Assignees
Labels
invalid not a bug/not an issue/not whatever you want question open question solved available upstream or in a branch

Comments

@kraybit
Copy link
kraybit commented Aug 25, 2024
#include <entt/entity/fwd.hpp>

struct Thing
{
	entt::entity target { entt::null }; // ERROR : Can not resolve symbol 'null'
};

Would be nice if this worked.
Cheers!
Kind regards /kraybit

PS. Or I'm doing this wrong, of course. Then please enlighten me : )

@skypjack skypjack self-assigned this Aug 26, 2024
@skypjack skypjack added the question open question label Aug 26, 2024
@skypjack
Copy link
Owner

You should include entity.hpp for that, which is another small and self-contained file that contains only entity related stuff.
The problem with including entt::null into fwd.hpp is that it needs the entt::null_t type, which is out of scope for a forward file.

@skypjack skypjack added invalid not a bug/not an issue/not whatever you want solved available upstream or in a branch labels Aug 26, 2024
@skypjack skypjack closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid not a bug/not an issue/not whatever you want question open question solved available upstream or in a branch
Projects
None yet
Development

No branches or pull requests

2 participants