How to use uncopyable components with skypjack/entt?

2 days ago 2
ARTICLE AD BOX

I am using EnTT, and I want to have non-moved and non-copied components ...

// struct component : _nocopy, _nomove // assume these are obvious { }; // this works fine reg.emplace<component>(reg.create()); // this does not work at all reg.view<component>().size();

... but something seems to be ... very not happy about that?

Is this just the way things are (components have to be movable) or am I missing something obvious?

Read Entire Article