meta: uses type_id_v rather than other techniques

This commit is contained in:
Michele Caini
2019-12-20 14:12:16 +01:00
parent 167721bf8c
commit acb70d4440
8 changed files with 49 additions and 72 deletions

View File

@@ -9,11 +9,6 @@ position create_position(int x, int y) {
}
void set_up() {
entt::meta<double>().import("double"_hs);
entt::meta<int>().import("int"_hs);
entt::meta<double>().conv<int>();
entt::meta<position>()
.type("position"_hs)
.ctor<&create_position>()