Код: Выделить всё
enum Type1{
type1a,
type1b
};
enum Type2{
type2a,
type2b
};
using Types = std::variant;
< /code>
Тогда я хочу добавить компонент в сущность в реестре как < /p>
registry.emplace(entity, Type1::type1a);
< /code>
Когда я пытаюсь это сделать, я получаю ошибку < /p>
error: 'class std::variant' has no member named '_M_destructive_move'
[build] this->_M_destructive_move(std::move(__rhs));
Подробнее здесь: https://stackoverflow.com/questions/796 ... ty-in-entt
Мобильная версия